MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / Unitize

Function Unitize

TSRigid3D.h:862–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860 /// \related FlatPoint3D
861
862 inline Point3D Unitize(const FlatPoint3D& p)
863 {
864 float n = 1.0F / p.w;
865 return (Point3D(p.x * n, p.y * n, p.z * n));
866 }
867
868 /// \brief Calculates the unitized equivalent of a 3D line.
869 ///

Callers

nothing calls this directly

Calls 2

Point3DClass · 0.85
InverseSqrtFunction · 0.85

Tested by

no test coverage detected