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