diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-28 20:33:41 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-02-28 20:33:41 -0500 |
commit | 1fbcb4dd4e52daeb53becba33827f8e48c5606b2 (patch) | |
tree | 6b8088fef6ca3e5f11551073b7793f6e9e767670 /lib/dihedral.h | |
parent | e0d4943090c285a44dad501cf9dc24714f9b3530 (diff) | |
download | c++-1fbcb4dd4e52daeb53becba33827f8e48c5606b2.tar.gz c++-1fbcb4dd4e52daeb53becba33827f8e48c5606b2.tar.bz2 c++-1fbcb4dd4e52daeb53becba33827f8e48c5606b2.zip |
fixed major mistake in process, also got n-component version fully working
Diffstat (limited to 'lib/dihedral.h')
-rw-r--r-- | lib/dihedral.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/dihedral.h b/lib/dihedral.h new file mode 100644 index 0000000..813e796 --- /dev/null +++ b/lib/dihedral.h @@ -0,0 +1,17 @@ + +#include <stdbool.h> +#include <stdlib.h> + +#include "types.h" + +typedef struct { + q_t i; + bool r; +} dihedral_t; + +dihedral_t *dihedral_compose(q_t q, q_t gti, const dihedral_t *g2); + +q_t dihedral_act(q_t q, q_t gi, q_t s); + +q_t dihedral_inverse_act(q_t q, const dihedral_t *g, q_t s); + |