MCPcopy Create free account
hub / github.com/defold/defold / NormalizePlane

Function NormalizePlane

engine/dlib/src/dlib/intersection.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static Plane NormalizePlane(Plane plane)
32{
33 float length = dmVMath::Length(plane.getXYZ());
34 return plane / length;
35}
36
37// Gribb-Hartmann
38// https://www.gamedevs.org/uploads/fast-extraction-viewing-frustum-planes-from-world-view-projection-matrix.pdf

Callers 1

CreateFrustumFromMatrixFunction · 0.85

Calls 2

LengthFunction · 0.50
getXYZMethod · 0.45

Tested by

no test coverage detected