1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 14:31:17 +00:00

improve matches (#1413)

This commit is contained in:
engineer124 2022-10-21 18:57:30 -04:00 committed by GitHub
parent 26d6028ff1
commit a715bf63d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 45 additions and 104 deletions

View file

@ -534,7 +534,7 @@ s32 MirRay_CheckInFrustum(Vec3f* vecA, Vec3f* vecB, f32 pointx, f32 pointy, f32
vecdiff.x = vecB->x - vecA->x;
vecdiff.y = vecB->y - vecA->y;
vecdiff.z = vecB->z - vecA->z;
if (1) {}
dist = SQ(vecdiff.x) + SQ(vecdiff.y) + SQ(vecdiff.z);
if (dist == 0.0f) {
@ -555,7 +555,6 @@ s32 MirRay_CheckInFrustum(Vec3f* vecA, Vec3f* vecB, f32 pointx, f32 pointy, f32
// If the Point is within the bounding double cone, check if it is in the frustum by checking whether it is between
// the bounding planes
if ((SQ(closestPtx - pointx) + SQ(closestPty - pointy) + SQ(closestPtz - pointz)) <= SQ(coneRadius)) {
if (1) {}
// Stores the vector difference again
Math_Vec3f_Diff(vecB, vecA, &sp5C);