wavelength 1.0.0
Loading...
Searching...
No Matches
Box Class Reference

Axis-aligned bounding box. More...

#include <box.h>

Collaboration diagram for Box:

Public Member Functions

void GrowToContain (const Vector3 &point)
 Widen this box on each axis where a point falls outside it.

Public Attributes

Vector3 mMin
Vector3 mMax

Detailed Description

Axis-aligned bounding box.

The class is not polymorphic and emits no RTTI descriptor, and no dump labels its members. The name and the member titles are therefore inferred from GrowToContain(), the one routine that treats the two quadwords as a lower and an upper corner.

Member Function Documentation

◆ GrowToContain()

void Box::GrowToContain ( const Vector3 & point)

Widen this box on each axis where a point falls outside it.

An axis whose value is below the lower corner moves only the lower corner, and the upper corner is tested only when the lower one did not move. The name is inferred.

Parameters
pointThe point to enclose.
Ghidra address:
NTSC-U/C: 0x00290790
Ghidra address:
PAL: 0x0029a158

Member Data Documentation

◆ mMin

Vector3 Box::mMin

Lower corner.

◆ mMax

Vector3 Box::mMax

Upper corner.


The documentation for this class was generated from the following file: