![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXVec.h>
Public Methods | |
FXVec () | |
Default constructor. | |
FXVec (const FXVec &w) | |
Copy constructor. | |
FXVec (FXfloat x, FXfloat y, FXfloat z) | |
Initialize with components. | |
FXVec (FXColor color) | |
Initialize with color. | |
FXfloat & | operator[] (FXint i) |
Return a non-const reference to the ith element. | |
const FXfloat & | operator[] (FXint i) const |
Return a const reference to the ith element. | |
FXVec & | operator= (FXColor color) |
Assign color. | |
FXVec & | operator= (const FXVec &w) |
Assignment. | |
FXVec & | operator+= (const FXVec &a) |
Assigning operators. | |
FXVec & | operator-= (const FXVec &a) |
FXVec & | operator *= (FXfloat n) |
FXVec & | operator/= (FXfloat n) |
operator FXfloat * () | |
Conversions. | |
operator const FXfloat * () const | |
operator FXColor () const | |
Convert to color. | |
Friends | |
FXAPI FXVec | operator- (const FXVec &a) |
Other operators. | |
FXAPI FXVec | operator! (const FXVec &a) |
FXAPI FXVec | operator+ (const FXVec &a, const FXVec &b) |
FXAPI FXVec | operator- (const FXVec &a, const FXVec &b) |
FXAPI FXVec | operator * (const FXVec &a, FXfloat n) |
FXAPI FXVec | operator * (FXfloat n, const FXVec &a) |
FXAPI FXVec | operator/ (const FXVec &a, FXfloat n) |
FXAPI FXVec | operator/ (FXfloat n, const FXVec &a) |
FXAPI FXfloat | operator * (const FXVec &a, const FXVec &b) |
Dot and cross products. | |
FXAPI FXVec | operator^ (const FXVec &a, const FXVec &b) |
FXAPI int | operator== (const FXVec &a, const FXVec &b) |
Equality tests. | |
FXAPI int | operator== (const FXVec &a, FXfloat n) |
FXAPI int | operator== (FXfloat n, const FXVec &a) |
FXAPI int | operator!= (const FXVec &a, const FXVec &b) |
FXAPI int | operator!= (const FXVec &a, FXfloat n) |
FXAPI int | operator!= (FXfloat n, const FXVec &a) |
FXAPI FXfloat | len (const FXVec &a) |
Other functions. | |
FXAPI FXVec | normalize (const FXVec &a) |
FXAPI FXVec | lo (const FXVec &a, const FXVec &b) |
FXAPI FXVec | hi (const FXVec &a, const FXVec &b) |
FXAPI FXStream & | operator<< (FXStream &store, const FXVec &v) |
Save vector to a stream. | |
FXAPI FXStream & | operator>> (FXStream &store, FXVec &v) |
Load vector from a stream. |