summaryrefslogtreecommitdiff
path: root/lib/dihedral.h
blob: e5e4cbd39d09f613a1e87f72514b14e8098560db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#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);

q_t *dihedral_gen_transformations(q_t q);