38 #ifndef COAL_INTERSECT_H
39 #define COAL_INTERSECT_H
48 class COAL_DLLAPI Intersect {
50 static bool buildTrianglePlane(
const Vec3s& v1,
const Vec3s& v2,
55 class COAL_DLLAPI Project {
57 struct COAL_DLLAPI ProjectResult {
68 ProjectResult() : sqr_distance(-1), encode(0) {}
72 static ProjectResult projectLine(
const Vec3s& a,
const Vec3s&
b,
76 static ProjectResult projectTriangle(
const Vec3s& a,
const Vec3s&
b,
80 static ProjectResult projectTetrahedra(
const Vec3s& a,
const Vec3s&
b,
85 static ProjectResult projectLineOrigin(
const Vec3s& a,
const Vec3s&
b);
88 static ProjectResult projectTriangleOrigin(
const Vec3s& a,
const Vec3s&
b,
92 static ProjectResult projectTetrahedraOrigin(
const Vec3s& a,
const Vec3s&
b,
97 class COAL_DLLAPI TriangleDistance {