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

Method PlaneFromPoints

src/utils/vbsp/map.cpp:384–399  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Builds a plane normal and distance from three points on the plane. If the normal is nearly axial, it will be snapped to be axial. Looks up the plane in the unique planes. Input : p0, p1, p2 - Three points on the plane. Output : Returns the index of the plane in the planes list. ---------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

SnapPlaneFunction · 0.85
VectorSubtractFunction · 0.50
CrossProductFunction · 0.50
VectorNormalizeFunction · 0.50
DotProductFunction · 0.50

Tested by

no test coverage detected