diff options
Diffstat (limited to 'src/Quaternions.h')
-rw-r--r-- | src/Quaternions.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Quaternions.h b/src/Quaternions.h index 6ed778a..4c10cd6 100644 --- a/src/Quaternions.h +++ b/src/Quaternions.h @@ -46,13 +46,12 @@ extern "C" { struct XYZ crossProduct(struct XYZ, struct XYZ); struct XYZ normalize(struct XYZ); void reflect(struct XYZ*, struct XYZ); - bool segmentIntersectsSphere(struct XYZ, struct XYZ, struct XYZ, float); + bool segCrossSphere(struct XYZ, struct XYZ, struct XYZ, float); + bool segCrossTrigon(struct XYZ p1, struct XYZ p2, + struct XYZ *pa, struct XYZ *pb, struct XYZ *pc, + struct XYZ *n, struct XYZ *p); struct XYZ rotate(struct XYZ, float, float, float); - float LineFacetd(struct XYZ p1, struct XYZ p2, - struct XYZ pa, struct XYZ pb, struct XYZ pc, - struct XYZ n, struct XYZ *p); - void setFrustum(float (*)[4], float*, float*); int cubeInFrustum(float (*)[4], float, float, float, float); int sphereInFrustum(float (*)[4], float, float, float, float); |