4 dimensional fixed point vector More...
Public Member Functions | |
void | Zero (void) |
Initialize the vector elements to zero. | |
void | One (void) |
Initialize the vector elements to 1.0f (Fixed) | |
void | Identity (void) |
Initialize the vector elements to identity for a quaternion. | |
Fixed32 | GetX (void) const |
Return the x component of the vector. | |
Fixed32 | GetY (void) const |
Return the y component of the vector. | |
Fixed32 | GetZ (void) const |
Return the z component of the vector. | |
Fixed32 | GetW (void) const |
Return the w component of the vector. | |
void | SetX (Fixed32 fX) |
Set the x component of the vector. | |
void | SetY (Fixed32 fY) |
Set the y component of the vector. | |
void | SetZ (Fixed32 fZ) |
Set the z component of the vector. | |
void | SetW (Fixed32 fW) |
Set the w component of the vector. | |
void | Set (Fixed32 fX, Fixed32 fY, Fixed32 fZ) |
Set the values to specific values. | |
void | Set (Fixed32 fX, Fixed32 fY, Fixed32 fZ, Fixed32 fW) |
Initialize the vector elements to specific values,. | |
void | Set (const FixedVector4D_t *pInput) |
Copy a FixedVector4D_t. | |
void | Negate (void) |
Negate a 4D vector. | |
void | Negate (Fixed32 fX, Fixed32 fY, Fixed32 fZ, Fixed32 fW) |
Negate the input and store it in this structure. | |
void | Negate (const FixedVector4D_t *pInput) |
Make a copy of the input after it's been negated. | |
Public Attributes | |
Fixed32 | x |
32 bit fixed point X value for the 4D Vector | |
Fixed32 | y |
32 bit fixed point Y value for the 4D Vector | |
Fixed32 | z |
32 bit fixed point Z value for the 4D Vector | |
Fixed32 | w |
32 bit fixed point W value for the 4D Vector | |
4 dimensional fixed point vector
This 16 byte vector contains x,y,z and w 32 bit fixed point coordinates. A set of common functions for simple 4 dimensional math are part of the structure.
It is expected to be 4 byte aligned and use scalar math. The members are hard coded to be "x", "y", "z" and "w" for maximum compatibility
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Initialize the vector elements to identity for a quaternion.
Fills x, y, and z with BURGER_FLOAT_TO_FIXED(0.0f) and w is filled in with BURGER_FLOAT_TO_FIXED(1.0f). Thereby initializing the structure to the equivalant of a quaternion identity..
|
inline |
Make a copy of the input after it's been negated.
Copy the input data and negate it.
pInput | Valid pointer to a FixedVector4D_t structure to copy and negate |
Negate the input and store it in this structure.
Set the x,y,z and w values to -fX,-fY,-fZ and -fW respectively
fX | X value to negate |
fY | Y value to negate |
fZ | Z value to negate |
fW | W value to negate |
|
inline |
Negate a 4D vector.
Set the x,y,z and w values to -x,-y,-z and -w respectively
|
inline |
Initialize the vector elements to 1.0f (Fixed)
Fills in all of the entries with zero, thereby initializing the structure to a known state.
|
inline |
Copy a FixedVector4D_t.
Make a copy of a FixedVector4D_t
pInput | Valid pointer to a FixedVector4D_t structure to copy |
Set the values to specific values.
Sets the x, y and z values to specific values. w is set to BURGER_FLOAT_TO_FIXED(1.0f)
fX | New x value |
fY | New y value |
fZ | New z value |
Initialize the vector elements to specific values,.
Given the new values for x, y, z and w, store them into the structure.
fX | The new x component to store in the vector. |
fY | The new y component to store in the vector. |
fZ | The new z component to store in the vector. |
fW | The new w component to store in the vector. |
|
inline |
Set the w component of the vector.
fW | The new w component of the vector. |
|
inline |
Set the x component of the vector.
fX | The new x component of the vector. |
|
inline |
Set the y component of the vector.
fY | The new y component of the vector. |
|
inline |
Set the z component of the vector.
fZ | The new z component of the vector. |
|
inline |
Initialize the vector elements to zero.
Fills in all of the entries with zero, thereby initializing the structure to a known state.
Fixed32 Burger::FixedVector4D_t::w |
32 bit fixed point W value for the 4D Vector
Fixed32 Burger::FixedVector4D_t::x |
32 bit fixed point X value for the 4D Vector
Fixed32 Burger::FixedVector4D_t::y |
32 bit fixed point Y value for the 4D Vector
Fixed32 Burger::FixedVector4D_t::z |
32 bit fixed point Z value for the 4D Vector