diff options
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); + |