Go to the source code of this file.
◆ operator<<()
Write the six planes of a view volume.
Each plane goes on its own tab-indented line under its title.
- Parameters
-
| stream | The stream to write to. |
| frustum | The view volume. |
- Returns
- The stream.
- Ghidra address:
- NTSC-U/C: 0x002904e0
- Ghidra address:
- PAL: 0x00299ea8
◆ IsSphereOutsideFrustum()
| int IsSphereOutsideFrustum |
( |
const Sphere & | sphere, |
|
|
const Frustum & | frustum ) |
Report whether a sphere lies wholly outside at least one plane of a view volume.
Each plane is dotted with the centre and the radius added, on VU0 in macro mode, and the sticky sign bit of the status flag collects a negative sum from every plane. The bit is returned as it stands rather than as a truth value.
- Parameters
-
| sphere | The sphere, in the space the planes are expressed in. |
| frustum | The view volume. |
- Returns
- kVu0StatusStickySign when the whole sphere is behind some plane, and zero otherwise.
- Ghidra address:
- NTSC-U/C: 0x00290f90
- Ghidra address:
- PAL: 0x0029a958
◆ IsPointInsideFrustum()
| bool IsPointInsideFrustum |
( |
const Vector3 & | point, |
|
|
const Frustum & | frustum ) |
Report whether a point lies on the inner side of every plane of a view volume.
- Parameters
-
| point | The point, in the space the planes are expressed in. |
| frustum | The view volume. |
- Returns
- Whether no plane puts the point behind it.
- Ghidra address:
- NTSC-U/C: 0x00291090
- Ghidra address:
- PAL: 0x0029aa58
◆ kVu0StatusStickySign
| int kVu0StatusStickySign = 0x80 |
|
constexpr |