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