Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXVec4f Class Reference

Single-precision 4-element vector. More...

#include <FXVec4f.h>

Public Member Functions

 FXVec4f ()
 Default constructor; value is not initialized.
 
 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.
 
FXVec4foperator= (const FXVec4f &v)
 Assignment.
 
FXVec4foperator= (const FXfloat v[])
 Assignment from array of floats.
 
FXVec4fset (const FXVec4f &v)
 Set value from another vector.
 
FXVec4fset (const FXfloat v[])
 Set value from array of floats.
 
FXVec4fset (FXfloat xx, FXfloat yy, FXfloat zz, FXfloat ww)
 Set value from components.
 
FXVec4foperator*= (FXfloat n)
 Assigning operators.
 
FXVec4foperator/= (FXfloat n)
 
FXVec4foperator+= (const FXVec4f &v)
 Element-wise assigning operators.
 
FXVec4foperator-= (const FXVec4f &v)
 
FXVec4foperator%= (const FXVec4f &v)
 
FXVec4foperator/= (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
 

Detailed Description

Single-precision 4-element vector.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp