#include <FXVec3f.h>
Public Member Functions | |
FXVec3f () | |
FXVec3f (const FXVec3f &v) | |
FXVec3f (const FXfloat v[]) | |
FXVec3f (FXfloat xx, FXfloat yy, FXfloat zz=1.0f) | |
FXVec3f (FXColor color) | |
FXfloat & | operator[] (FXint i) |
const FXfloat & | operator[] (FXint i) const |
FXVec3f & | operator= (FXColor color) |
FXVec3f & | operator= (const FXVec3f &v) |
FXVec3f & | operator= (const FXfloat v[]) |
FXVec3f & | set (const FXVec3f &v) |
FXVec3f & | set (const FXfloat v[]) |
FXVec3f & | set (FXfloat xx, FXfloat yy, FXfloat zz) |
FXVec3f & | operator*= (FXfloat n) |
FXVec3f & | operator/= (FXfloat n) |
FXVec3f & | operator+= (const FXVec3f &v) |
FXVec3f & | operator-= (const FXVec3f &v) |
operator FXfloat * () | |
operator const FXfloat * () const | |
operator FXVec2f & () | |
operator const FXVec2f & () const | |
operator FXColor () const | |
FXVec3f | operator+ () const |
FXVec3f | operator- () const |
FXVec3f | operator+ (const FXVec3f &v) const |
FXVec3f | operator- (const FXVec3f &v) const |
FXVec3f | operator* (const FXMat3f &m) const |
FXVec3f | operator* (const FXMat4f &m) const |
FXfloat | operator* (const FXVec3f &v) const |
FXVec3f | operator^ (const FXVec3f &v) const |
bool | operator! () const |
bool | operator== (const FXVec3f &v) const |
bool | operator!= (const FXVec3f &v) const |
bool | operator< (const FXVec3f &v) const |
bool | operator<= (const FXVec3f &v) const |
bool | operator> (const FXVec3f &v) const |
bool | operator>= (const FXVec3f &v) const |
FXfloat | length2 () const |
FXfloat | length () const |
FXVec3f & | clamp (FXfloat lo, FXfloat hi) |
Public Attributes | |
FXfloat | x |
FXfloat | y |
FXfloat | z |
Friends | |
FXVec3f | operator* (const FXVec3f &a, FXfloat n) |
FXVec3f | operator* (FXfloat n, const FXVec3f &a) |
FXVec3f | operator/ (const FXVec3f &a, FXfloat n) |
FXVec3f | operator/ (FXfloat n, const FXVec3f &a) |
bool | operator== (const FXVec3f &a, FXfloat n) |
bool | operator!= (const FXVec3f &a, FXfloat n) |
bool | operator== (FXfloat n, const FXVec3f &a) |
bool | operator!= (FXfloat n, const FXVec3f &a) |
bool | operator< (const FXVec3f &a, FXfloat n) |
bool | operator<= (const FXVec3f &a, FXfloat n) |
bool | operator> (const FXVec3f &a, FXfloat n) |
bool | operator>= (const FXVec3f &a, FXfloat n) |
bool | operator< (FXfloat n, const FXVec3f &a) |
bool | operator<= (FXfloat n, const FXVec3f &a) |
bool | operator> (FXfloat n, const FXVec3f &a) |
bool | operator>= (FXfloat n, const FXVec3f &a) |
FXVec3f | veclo (const FXVec3f &a, const FXVec3f &b) |
FXVec3f | vechi (const FXVec3f &a, const FXVec3f &b) |
FXAPI FXVec3f | vecnormal (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c) |
FXAPI FXVec3f | vecnormal (const FXVec3f &a, const FXVec3f &b, const FXVec3f &c, const FXVec3f &d) |
FXAPI FXVec3f | vecnormalize (const FXVec3f &v) |
FXAPI FXStream & | operator<< (FXStream &store, const FXVec3f &v) |
FXAPI FXStream & | operator>> (FXStream &store, FXVec3f &v) |
FX::FXVec3f::FXVec3f | ( | ) | [inline] |
Default constructor.
FX::FXVec3f::FXVec3f | ( | const FXVec3f & | v | ) | [inline] |
FX::FXVec3f::FXVec3f | ( | const FXfloat | v[] | ) | [inline] |
Initialize from array of floats.
FX::FXVec3f::FXVec3f | ( | FXfloat | xx, | |
FXfloat | yy, | |||
FXfloat | zz = 1.0f | |||
) | [inline] |
Initialize from components.
FX::FXVec3f::FXVec3f | ( | FXColor | color | ) |
Initialize with color.
FXfloat& FX::FXVec3f::operator[] | ( | FXint | i | ) | [inline] |
Return a non-const reference to the ith element.
const FXfloat& FX::FXVec3f::operator[] | ( | FXint | i | ) | const [inline] |
Return a const reference to the ith element.
FXVec3f& FX::FXVec3f::operator= | ( | FXColor | color | ) |
Assign color.
FXVec3f& FX::FXVec3f::operator= | ( | const FXfloat | v[] | ) | [inline] |
Assignment from array of floats.
FXVec3f& FX::FXVec3f::set | ( | const FXfloat | v[] | ) | [inline] |
Set value from array of floats.
FXVec3f& FX::FXVec3f::set | ( | FXfloat | xx, | |
FXfloat | yy, | |||
FXfloat | zz | |||
) | [inline] |
Set value from components.
FXVec3f& FX::FXVec3f::operator*= | ( | FXfloat | n | ) | [inline] |
Assigning operators.
FX::FXVec3f::operator FXfloat * | ( | ) | [inline] |
Conversions.
FX::FXVec3f::operator FXColor | ( | ) | const |
Convert to color.
FXVec3f FX::FXVec3f::operator+ | ( | ) | const [inline] |
Unary.
FXfloat FX::FXVec3f::operator* | ( | const FXVec3f & | v | ) | const [inline] |
bool FX::FXVec3f::operator! | ( | ) | const [inline] |
Test if zero.
bool FX::FXVec3f::operator== | ( | const FXVec3f & | v | ) | const [inline] |
bool FX::FXVec3f::operator< | ( | const FXVec3f & | v | ) | const [inline] |
FXfloat FX::FXVec3f::length2 | ( | ) | const [inline] |
Length and square of length.
FXVec3f& FX::FXVec3f::clamp | ( | FXfloat | lo, | |
FXfloat | hi | |||
) | [inline] |
Clamp values of vector between limits.
Compute normal from three points a,b,c.
FXAPI FXVec3f vecnormal | ( | const FXVec3f & | a, | |
const FXVec3f & | b, | |||
const FXVec3f & | c, | |||
const FXVec3f & | d | |||
) | [friend] |
Compute approximate normal from four points a,b,c,d.
Save vector to a stream.