benilla-re systems structs docs

BoundsOfPoints

function · cmath · primitive

Address
0x7c1450 · 282 bytes, up to 0x7c1569
Signature
NTempest::CAaBox * __fastcall (NTempest::CAaBox *out, const NTempest::C3Vector *points, uint32_t n)
Meaning
Writes the minimum and maximum corners of n points of stride 12, or zeros for none
Confidence
verified, proof two
Finding
cmath/geometry#dominant-axis-and-bounds

Finding: Dominant axis and bounds in cmath: intersections

0x7bf680 returns the index of the largest component of the vector in ecx by magnitude: 0 only when |x| is strictly greater than both |y| and |z|; otherwise 1 when |y| is strictly greater than |z|, else 2, so a tie goes to the later axis. 0x7c1450(n, points) writes the bounds of n points (stride 12) to the six floats at ecx, minimum then maximum; for n of 0 all six are 0. It starts from the first point and folds each next one with a per-axis compare, the maximum through 0x6992c0. 0x7c16b0 does the same for the points an index list names.

The derivation is in the doc.

Callers 10

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.