diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-24 04:21:46 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-24 04:30:20 +0900 |
commit | efd25d51cdd7a9cadda1c0f6983905fc17545f14 (patch) | |
tree | 8dea973669d8dfe4e7209c9f419bf8cbbf483323 /src/Quaternions.h | |
parent | 2598835c54a3869a477d287d2845bbe42790a359 (diff) | |
download | blackshades-2.5.1.tar.gz |
Fix decal fading animation 2.5.1
Also fix missing decal regression. Fixes: 48417e11854f8 ("Make XYZ C-compatible")
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); |