projects
/
meshfrac
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fa492f035e319faf3dd11b26e4df1ebc825167ee
[meshfrac]
/
src
/
geom.h
1
#ifndef GEOM_H_
2
#define GEOM_H_
3
4
#include "cgmath/cgmath.h"
5
6
struct plane {
7
cgm_vec3 pt, norm;
8
};
9
10
float plane_dist(const struct plane *p, const cgm_vec3 *pt);
11
float plane_sdist(const struct plane *p, const cgm_vec3 *pt);
12
void midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b);
13
14
#endif /* GEOM_H_ */