![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXVec4f.h>
Single-precision 4-element vector.
FX::FXVec4f::FXVec4f | ( | ) | [inline] |
Default constructor.
FX::FXVec4f::FXVec4f | ( | const FXVec4f & | v | ) | [inline] |
FX::FXVec4f::FXVec4f | ( | const FXVec3f & | v, |
FXfloat | ww = 1.0f |
||
) | [inline] |
Construct with 3-vector and optional scalar.
References FX::FXVec3f::x, FX::FXVec3f::y, and FX::FXVec3f::z.
FX::FXVec4f::FXVec4f | ( | const FXfloat | v[] | ) | [inline] |
Construct from array of floats.
FX::FXVec4f::FXVec4f | ( | FXfloat | xx, |
FXfloat | yy, | ||
FXfloat | zz, | ||
FXfloat | ww = 1.0f |
||
) | [inline] |
Construct from components.
FX::FXVec4f::FXVec4f | ( | FXColor | color | ) |
Construct from color.
Return a non-const reference to the ith element.
Return a const reference to the ith element.
Assignment.
References FX::FXVec3f::x, FX::FXVec3f::y, and FX::FXVec3f::z.
FXVec4f& FX::FXVec4f::set | ( | const FXVec4f & | v | ) | [inline] |
Set value from another vector.
References x.
FXVec4f& FX::FXVec4f::set | ( | const FXfloat | v[] | ) | [inline] |
Set value from array of floats.
Set value from components.
FX::FXVec4f::operator FXfloat * | ( | ) | [inline] |
Conversion.
FX::FXVec4f::operator const FXfloat * | ( | ) | const [inline] |
FX::FXVec4f::operator FXVec3f & | ( | ) | [inline] |
FX::FXVec4f::operator const FXVec3f & | ( | ) | const [inline] |
FX::FXVec4f::operator FXColor | ( | ) | const |
Convert to color.
FXVec4f FX::FXVec4f::operator+ | ( | ) | const [inline] |
Unary.
FXVec4f FX::FXVec4f::operator- | ( | ) | const [inline] |
bool FX::FXVec4f::operator! | ( | ) | const [inline] |
Test if zero.
bool FX::FXVec4f::operator== | ( | const FXVec4f & | v | ) | const [inline] |
bool FX::FXVec4f::operator< | ( | const FXVec4f & | v | ) | const [inline] |
FXfloat FX::FXVec4f::length2 | ( | ) | const [inline] |
Length and square of length.
FXfloat FX::FXVec4f::length | ( | ) | const [inline] |
References sqrtf.
FXVec4f& FX::FXVec4f::clamp | ( | FXfloat | lo, |
FXfloat | hi | ||
) | [inline] |
Clamp values of vector between limits.
References FXCLAMP.
FXfloat FX::FXVec4f::distance | ( | const FXVec3f & | p | ) | const |
Signed distance normalized plane and point.
bool FX::FXVec4f::crosses | ( | const FXVec3f & | a, |
const FXVec3f & | b | ||
) | const |
Return true if edge a-b crosses plane.
Referenced by FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), FX::operator>=(), and set().
Referenced by FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), and FX::operator>=().
Referenced by FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), and FX::operator>=().
Referenced by FXVec4f(), FX::hi(), FX::lo(), operator!=(), FX::operator!=(), operator*(), FX::operator*(), operator+(), operator+=(), operator-(), operator-=(), FX::operator/(), operator<(), FX::operator<(), operator<=(), FX::operator<=(), operator=(), operator==(), FX::operator==(), operator>(), FX::operator>(), operator>=(), and FX::operator>=().
![]() |