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

Six-plane view volume. More...

#include <frustum.h>

Collaboration diagram for Frustum:

Public Member Functions

void Set (float flNear, float flFar, float flFov, float flAspect)
 Build the six planes of a perspective view volume.

Public Attributes

Plane mFront
Plane mBack
Plane mLeft
Plane mRight
Plane mTop
Plane mBottom

Detailed Description

Six-plane view volume.

The class is not polymorphic and emits no RTTI descriptor, so the name is inferred. The member order and the member titles both come from the text writer, which walks six consecutive quadwords and writes them under "\n\tfront:", "\n\tback:", "\n\tleft:", "\n\tright:", "\n\ttop:", and "\n\tbottom:".

Member Function Documentation

◆ Set()

void Frustum::Set ( float flNear,
float flFar,
float flFov,
float flAspect )

Build the six planes of a perspective view volume.

Every plane is expressed in camera space. The four side planes pass through the origin unless flFov is zero. A zero flFov gives each side plane the distance of the unit offset it is built through.

Parameters
flNearDistance to the near plane.
flFarDistance to the far plane.
flFovField of view in radians.
flAspectVertical extent divided by the horizontal extent.
Ghidra address:
NTSC-U/C: 0x00290c48
Ghidra address:
PAL: 0x0029a610

Member Data Documentation

◆ mFront

Plane Frustum::mFront

◆ mBack

Plane Frustum::mBack

◆ mLeft

Plane Frustum::mLeft

◆ mRight

Plane Frustum::mRight

◆ mTop

Plane Frustum::mTop

◆ mBottom

Plane Frustum::mBottom

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