#include <FMVector4.h>
Public Member Functions | |
FMVector4 () | |
Creates an empty 4D vector. | |
FMVector4 (const float *source, uint32 startIndex=0) | |
Creates the FMVector4 from a list of floats . | |
FMVector4 (const FMVector3 &v, float _w) | |
Creates the FMVector4 with the coordinates given. | |
FMVector4 (const FMVector2 &v1, const FMVector2 &v2) | |
Creates the FMVector4 with the coordinates given. | |
FMVector4 (float _x, float _y, float _z, float _w) | |
Creates the FMVector4 with the coordinates given. | |
FMVector4 (const FMColor &c) | |
Creates the 4D vector from a given color value. | |
FMVector3 | ToHSVColor () |
Retrieves the HSV color value for this RGBA color value. | |
operator float * () | |
Get this FMVector4 as an array of floats . | |
operator const float * () const | |
Get this FMVector4 as an array of floats . | |
FMVector4 & | operator= (const float *v) |
Assign this FMVector4 to the given float array. | |
void | ComponentMinimum (const FMVector4 &min) |
Update each component of this FMVector to the minimum of two FMVector4s. | |
void | ComponentMaximum (const FMVector4 &max) |
Update each component of this FMVector to the maximum of two FMVector4s. | |
Static Public Member Functions | |
static FMVector4 | FromHSVColor (float hue, float saturation, float value) |
Creates the 4D vector from a HSV color value. | |
Public Attributes | |
float | x |
The first coordinate. | |
float | y |
The second coordinate. | |
float | z |
The third coordinate. | |
float | w |
The fourth coordinate. | |
Static Public Attributes | |
static const FMVector4 | Zero |
The 4D vector containing all zeroes. | |
static const FMVector4 | One |
The 4D vector containing all ones. | |
static const FMVector4 | AlphaOne |
Not used within FCollada.
|
Creates the FMVector4 from a list of
It takes the first 4
|
|
Creates the FMVector4 with the coordinates given.
The first three coordinates are taken from the FMVector3, where the first one is the x value, the second is that y, and the third is the z. The forth value is the
|
|
Creates the FMVector4 with the coordinates given.
|
|
Creates the FMVector4 with the coordinates given.
|
|
Creates the 4D vector from a given color value.
|
|
Update each component of this FMVector to the maximum of two FMVector4s. Updates each of the four components to be the maximum of the current value and that of the corresponding value of the given FMVector4.
|
|
Update each component of this FMVector to the minimum of two FMVector4s. Updates each of the four components to be the minimum of the current value and that of the corresponding value of the given FMVector4.
|
|
Creates the 4D vector from a HSV color value. HSV stands for hue, saturation and value and is a more humane way to express color values, as opposed to RGB.
|
|
Get this FMVector4 as an array of
|
|
Get this FMVector4 as an array of
|
|
Assign this FMVector4 to the given float array.
Assigns each coordinate of this FMVector4 to the elements in the
|
|
Retrieves the HSV color value for this RGBA color value. All the color components are expected to be in the [0,1] range: no clamping will be done.
|