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

Function SnapPlane

src/utils/vbsp/map.cpp:286–294  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Snaps normal to axis-aligned if it is within an epsilon of axial. Rounds dist to integer if it is within an epsilon of integer. Input : normal - Plane normal vector (assumed to be unit length). dist - Plane constant. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

FindFloatPlaneMethod · 0.85
PlaneFromPointsMethod · 0.85

Calls 4

SnapVectorFunction · 0.85
fabsFunction · 0.85
RoundIntFunction · 0.85
DotMethod · 0.45

Tested by

no test coverage detected