From 1fbcb4dd4e52daeb53becba33827f8e48c5606b2 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 28 Feb 2018 20:33:41 -0500 Subject: fixed major mistake in process, also got n-component version fully working --- lib/dihedral.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/dihedral.h (limited to 'lib/dihedral.h') 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 +#include + +#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); + -- cgit v1.2.3-70-g09d2