benilla-re systems structs docs

BuildPlaneFromPoints

function · cmath · primitive

Address
0x7bf860 · 278 bytes, up to 0x7bf975
Signature
void __thiscall (NTempest::CFacet *this, const NTempest::C3Vector *p0, const NTempest::C3Vector *p1, const NTempest::C3Vector *p2)
Meaning
Stores the unit normal and distance of the plane through three points, then the points
Confidence
verified, proof two
Finding
cmath/matrices#axis-index-and-planes
Test
cmath::plane_from_3pts

Finding: Axis index and planes in cmath: matrices

0x7bf700 (ecx a vector) returns the index of the component of least magnitude: 0 when |x| < |y| and |x| < |z|, 2 when |x| < |y| and |x| ≥ |z|, else 2 when |z| < |y| and 1 otherwise; a NaN falls to the later index. 0x7bf860(plane, p0, p1, p2) copies the three points to +0x10 to +0x30 and writes the unit normal of (p1 − p0) × (p2 − p0) and d = −(n·p0) first; there is no test for a zero length. 0x7bf7b0(plane, s) stores the record (0, 0, 1, −s) with every point coordinate s; its fourth float is (s + s)·0 − s, NaN for infinite s.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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