mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup. (#365)
This commit is contained in:
committed by
GitHub
parent
ef9c17cf3d
commit
0e7d969a8a
@@ -397,13 +397,13 @@ namespace bx
|
|||||||
bottom.normal.z = zw - zy;
|
bottom.normal.z = zw - zy;
|
||||||
bottom.dist = ww - wy;
|
bottom.dist = ww - wy;
|
||||||
|
|
||||||
Plane* plane = _result;
|
|
||||||
for (uint32_t ii = 0; ii < 6; ++ii)
|
for (uint32_t ii = 0; ii < 6; ++ii)
|
||||||
{
|
{
|
||||||
const float invLen = 1.0f/length(plane->normal);
|
Plane& plane = _result[ii];
|
||||||
plane->normal = normalize(plane->normal);
|
|
||||||
plane->dist *= invLen;
|
const float invLen = divSafe(1.0f, length(plane.normal) );
|
||||||
++plane;
|
plane.normal = mul(plane.normal, invLen);
|
||||||
|
plane.dist *= invLen;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user