summaryrefslogtreecommitdiff
path: root/lib/dihedral.h
blob: 813e79682f2e34f663e1dce892f5a3dbb930fad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);