Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Single-precision 4-element vector. More...
#include <FXVec4f.h>
Public Member Functions | |
FXVec4f () | |
Default constructor; value is not initialized. | |
FXVec4f (FXfloat d) | |
Initialize all components the same. | |
FXVec4f (const FXVec3f &v, FXfloat s=0.0f) | |
Construct with 3-vector. | |
FXVec4f (const FXVec4f &v) | |
Initialize from another vector. | |
FXVec4f (const FXfloat v[]) | |
Construct from array of floats. | |
FXVec4f (FXfloat xx, FXfloat yy, FXfloat zz, FXfloat ww) | |
Construct from components. | |
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. | |
FXVec4f & | operator= (const FXVec4f &v) |
Assignment. | |
FXVec4f & | operator= (const FXfloat v[]) |
Assignment from array of floats. | |
FXVec4f & | set (FXfloat d) |
Assign with constant. | |
FXVec4f & | set (FXfloat xx, FXfloat yy, FXfloat zz, FXfloat ww) |
Set value from components. | |
FXVec4f & | set (const FXVec4f &v) |
Set value from another vector. | |
FXVec4f & | set (const FXfloat v[]) |
Set value from array of floats. | |
FXVec4f & | operator*= (FXfloat n) |
Assigning operators. | |
FXVec4f & | operator/= (FXfloat n) |
FXVec4f & | operator+= (const FXVec4f &v) |
Element-wise assigning operators. | |
FXVec4f & | operator-= (const FXVec4f &v) |
FXVec4f & | operator%= (const FXVec4f &v) |
FXVec4f & | operator/= (const FXVec4f &v) |
operator FXfloat * () | |
Conversion. | |
operator const FXfloat * () const | |
operator FXVec3f & () | |
operator const FXVec3f & () const | |
FXbool | operator! () const |
Test if zero. | |
FXVec4f | operator+ () const |
Unary. | |
FXVec4f | operator- () const |
FXfloat | length2 () const |
Length and square of length. | |
FXfloat | length () const |
FXfloat | distance (const FXVec3f &p) const |
Signed distance normalized plane and point. | |
FXbool | crosses (const FXVec3f &a, const FXVec3f &b) const |
Return true if edge a-b crosses plane. | |
~FXVec4f () | |
Destructor. | |
Public Attributes | |
FXfloat | x |
FXfloat | y |
FXfloat | z |
FXfloat | w |
Single-precision 4-element vector.
Copyright © 1997-2022 Jeroen van der Zijp |