MCPcopy Create free account
hub / github.com/crownengine/crown / distance

Function distance

3rdparty/bx/src/bounds.cpp:1144–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142 }
1143
1144 float distance(const Plane& _plane, const LineSegment& _line)
1145 {
1146 const float pd = distance(_plane, _line.pos);
1147 const float ed = distance(_plane, _line.end);
1148 return min(max(pd*ed, 0.0f), abs(pd), abs(ed) );
1149 }
1150
1151 Vec3 closestPoint(const Line& _line, const Vec3& _point)
1152 {

Callers 15

DeltaTestMethod · 0.85
GetNewMemberIndexMethod · 0.85
SimulateFissionMethod · 0.85
insertMethod · 0.85
AllocFilterFunction · 0.85
AllocSourceFunction · 0.85
source.cppFile · 0.85
AllocBufferFunction · 0.85
AddActiveEffectSlotsFunction · 0.85
RemoveActiveEffectSlotsFunction · 0.85
AllocEffectSlotFunction · 0.85
AllocEffectFunction · 0.85

Calls 3

absFunction · 0.70
minFunction · 0.50
maxFunction · 0.50

Tested by 3

test_vector2Function · 0.68
test_vector3Function · 0.68
test_vector4Function · 0.68