PlaneFromTriangle
function · collision · primitive
- Address
0x637480· 200 bytes, up to0x637547- Signature
void __thiscall (float *this, const float *p0, const float *p1, const float *p2)- Meaning
- Writes the normalized plane through three points, normal (p1 - p0) × (p2 - p0)
- Confidence
- verified, proof one
- Finding
- collision/walking#vector-box-and-plane-helpers
- Test
collision::resolve_toolkit_difftest,terrain::dda_cell_intersect_first_difftest,terrain::chunk_gather_aabb_difftest,collision::plane_from_tri_difftest
Finding: Vector, box and plane helpers in collision: walking
0x6372d0 adds a scalar to each component of a vector, 0x637300 subtracts it, each result
rounded to float; 0x637330 writes the negation. 0x637350 returns 1 when a point lies within a
box's min and max on all three axes, bounds included; NaN fails. 0x6373b0(out, a, b) (ecx,
edx, one stack argument) writes, per component, a's bound when it lies strictly outside b's,
else b's: the union of two boxes. 0x637480(p0, p1, p2) writes the plane n = (p1 − p0) × (p2 − p0), normalized, and d = −((n.z·p0.z + n.y·p0.y) + n.x·p0.x); nothing guards a
degenerate triangle. 0x6376a0 sets a plane to (0, 0, 1, 0).
The derivation is in the doc.
Callers 7
- BuildTrianglePrism collision
- BuildQuadPrism collision
- BuildConvexPlanes terrain
- TraceListedCellsFirstHit terrain
- GatherChunkFacets terrain
- GatherChunkVolumeFacets terrain
- CMapChunk::CreateDetailDoodads terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.