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

Function Project

TSRigid2D.h:706–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704 /// \brief Returns the projection of the 2D point $p$ onto the 2D line $g$ under the assumption that the line is unitized.
705
706 inline Point2D Project(const Point2D& p, const Line2D& g)
707 {
708 return (Point2D(p + !g.xy * (p ^ g)));
709 }
710
711 // ==============================================
712 // Antiproject

Callers

nothing calls this directly

Calls 1

Point2DClass · 0.85

Tested by

no test coverage detected