MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / distanceSq

Function distanceSq

TheForceEngine/TFE_System/math.h:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 inline f32 distanceSq(const Vec3f* p0, const Vec3f* p1)
96 {
97 Vec3f diff = { p1->x - p0->x, p1->y - p0->y, p1->z - p0->z };
98 return dot(&diff, &diff);
99 }
100
101 inline f32 distanceSq(const Vec2f* p0, const Vec2f* p1)
102 {

Callers 1

findHoveredVertex3dFunction · 0.85

Calls 1

dotFunction · 0.70

Tested by

no test coverage detected