wavelength 1.0.0
Loading...
Searching...
No Matches
Vector3 Struct Reference

Three-component vector, padded to a PlayStation 2 quadword. More...

#include <vector3.h>

Public Attributes

float x
float y
float z
float w = 1.0f

Detailed Description

Three-component vector, padded to a PlayStation 2 quadword.

The class is not polymorphic and emits no RTTI descriptor. Its text dump writes three components under the labels "(x:", " y:", and " z:", and every vector unit access in the renderer loads and stores all four words at once. The fourth word is therefore padding rather than a homogeneous coordinate. Construction sets the padding word to 1.0. The quadword is then usable as a row of a transform.

Member Data Documentation

◆ x

float Vector3::x

◆ y

float Vector3::y

◆ z

float Vector3::z

◆ w

float Vector3::w = 1.0f

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