FillPlaneRecordWithScalar
function · cmath · primitive
- Address
0x7bf7b0· 135 bytes, up to0x7bf836- Signature
void __thiscall (NTempest::CFacet *this, float s)- Meaning
- Stores the plane record (0, 0, 1, -s) with a scalar in every point coordinate
- Confidence
- verified, proof two
- Finding
- cmath/matrices#axis-index-and-planes
- Test
cmath::scalar_bcast_struct13
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 4
- 0x513470 uicamera
- ConstructFacet terrain
- GatherChunkFacets terrain
- PushFacet terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.