MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / FindClosestPointOnPath

Method FindClosestPointOnPath

src/game/server/ai_trackpather.cpp:784–870  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Finds the closest point on the path, returns a signed perpendicular distance where negative means on the left side of the path (when travelled from prev to next) and positive means on the right side -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 12

AssertFunction · 0.85
WarningFunction · 0.85
HasBeenVisitedMethod · 0.80
GetPreviousMethod · 0.80
ToCStrMethod · 0.80
VectorSubtractFunction · 0.50
VectorNormalizeFunction · 0.50
VisitMethod · 0.45
GetNextMethod · 0.45
GetAbsOriginMethod · 0.45
DistToSqrMethod · 0.45

Tested by

no test coverage detected