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

Function Unitize

TSConformal2D.h:910–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908 /// \related RoundPoint2D
909
910 inline RoundPoint2D Unitize(const RoundPoint2D& a)
911 {
912 float n = 1.0F / a.z;
913 return (RoundPoint2D(a.x * n, a.y * n, 1.0F, a.w * n));
914 }
915
916 /// \brief Calculates the unitized equivalent of a 2D dipole.
917 ///

Callers

nothing calls this directly

Calls 3

RoundPoint2DClass · 0.85
InverseSqrtFunction · 0.85
Circle2DClass · 0.85

Tested by

no test coverage detected