MCPcopy Create free account
hub / github.com/dabing1022/Blog / DistToLineSegment

Function DistToLineSegment

GameAI/2D/geometry.h:142–163  ·  view source on GitHub ↗

------------------------- DistToLineSegment ---------------------------- given a line segment AB and a point P, this function calculates the perpendicular distance between them ------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Vec2DDistanceFunction · 0.85

Tested by

no test coverage detected