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:
parent
26d6028ff1
commit
a715bf63d0
21 changed files with 45 additions and 104 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue