MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xVec3DistFast

Function xVec3DistFast

src/SB/Game/zEntPickup.cpp:1639–1650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1637}
1638
1639WEAK F32 xVec3DistFast(const xVec3* a, const xVec3* b)
1640{
1641 F32 dx = a->x - b->x;
1642 F32 dy = a->y - b->y;
1643 F32 dz = a->z - b->z;
1644 F32 dist2 = SQR(dx) + SQR(dy) + SQR(dz);
1645 F32 dist;
1646
1647 xsqrtfast(dist, dist2);
1648
1649 return dist;
1650}
1651
1652WEAK void xMat3x3MulRotC(xMat3x3* o, xMat3x3* m, F32 _x, F32 _y, F32 _z, F32 t)
1653{

Callers

nothing calls this directly

Calls 1

xsqrtfastFunction · 0.85

Tested by

no test coverage detected