mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 12:42:34 +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.dist = ww - wy;
|
||||
|
||||
Plane* plane = _result;
|
||||
for (uint32_t ii = 0; ii < 6; ++ii)
|
||||
{
|
||||
const float invLen = 1.0f/length(plane->normal);
|
||||
plane->normal = normalize(plane->normal);
|
||||
plane->dist *= invLen;
|
||||
++plane;
|
||||
Plane& plane = _result[ii];
|
||||
|
||||
const float invLen = divSafe(1.0f, length(plane.normal) );
|
||||
plane.normal = mul(plane.normal, invLen);
|
||||
plane.dist *= invLen;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user