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

Function Unitize

TSRigid2D.h:563–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561 /// \related FlatPoint2D
562
563 inline Point2D Unitize(const FlatPoint2D& p)
564 {
565 float n = 1.0F / p.z;
566 return (Point2D(p.x * n, p.y * n));
567 }
568
569 /// \brief Calculates the unitized equivalent of a 2D line.
570 ///

Callers

nothing calls this directly

Calls 2

Point2DClass · 0.85
InverseSqrtFunction · 0.85

Tested by

no test coverage detected