nn::math::VEC4 Structurestruct VEC4 : public nn::math::VEC4_
A four-dimensional vector class.
typedef Definitions
self_type
|
This class's type. | |
|---|---|---|
value_type
|
The type of this class's elements. |
| S |
DIMENSION
|
const int | Number of dimensions. |
|---|
| Creation | ||
|---|---|---|
VEC4
|
Constructor. | |
| Conversions | ||
operator f32 *
|
Casts to an f32-type value. |
|
operator const f32 *
|
Casts to an f32-type value. |
|
| Operators | ||
Lerp
|
Linearly interpolates between two vectors and sets the result. | |
Dot
|
Calculates the dot product with the specified vector. | |
LenSq
|
Calculates the square of a vector length. Use of this function is not recommended because it may be removed in the future. We recommend that you use LengthSquare instead. |
|
LengthSquare
|
Calculates the square of a vector length. | |
Length
|
Calculates the vector length. | |
Normalize
|
Normalizes a vector. | |
SafeNormalize
|
Normalizes a vector. If normalization fails, sets the specified vector. | |
DistanceSquare
|
Calculates the squared distance to the specified vector. | |
Maximize
|
Creates the vector formed by the smaller of each component of two input vectors. | |
Minimize
|
Calculates the cross product of two vectors and sets the result. | |
| Settings | ||
Set
|
Sets values individually. | |
| Comparisons | ||
operator==
|
Returns true if the values are equal. |
|
operator!=
|
Returns true if the values are not equal. |
|
IsZero
|
Returns true if this is a zero vector. |
|
IsZeroWOne
|
Returns true if this is a zero vector in homogeneous coordinates. |
|
| Other | ||
| S |
Zero
|
The zero vector in homogeneous coordinates. |
| S |
ZeroWOne
|
All of the elements are vectors of 1. |
Report
|
Outputs the state. | |
nn::math::VEC4_
nn::math::VEC4
CONFIDENTIAL