benilla-re systems structs docs

PointInsidePlanes

function · models · primitive

Address
0x6a4990 · 100 bytes, up to 0x6a49f3
Signature
bool __thiscall (CMapObj *this, const float *point)
Meaning
Returns whether a point lies inside a loaded map object's convex volume planes
Confidence
verified, proof one
Finding
models/wmo#bounding-spheres-and-volume
Test
models::wmo_point_in_convex_volume_difftest

Finding: Bounding spheres and volume in models: map objects

A loaded map object's bounding sphere is centred at (min + max)·0.5 of its box, the sum rounded to a float before the halving, with radius |max − centre|; a group's comes the same way from its group record's box. An unloaded map object gives a zero sphere. A point is inside the map object's convex volume when every plane gives n·p + d ≤ 0, a NaN counting as inside, and with no planes it is inside; an unloaded map object contains nothing.

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.