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

FX::FXVec4d Class Reference

Double-precision 4-element vector. More...

#include <FXVec4d.h>

Public Member Functions

 FXVec4d ()
 Default constructor; value is not initialized.
 
 FXVec4d (const FXVec3d &v, FXdouble s=0.0)
 Construct with 3-vector.
 
 FXVec4d (const FXVec4d &v)
 Initialize from another vector.
 
 FXVec4d (const FXdouble v[])
 Initialize from array of doubles.
 
 FXVec4d (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)
 Initialize with components.
 
FXdouble & operator[] (FXint i)
 Return a non-const reference to the ith element.
 
const FXdouble & operator[] (FXint i) const
 Return a const reference to the ith element.
 
FXVec4doperator= (const FXVec4d &v)
 Assignment.
 
FXVec4doperator= (const FXdouble v[])
 Assignment from array of doubles.
 
FXVec4dset (const FXVec4d &v)
 Set value from another vector.
 
FXVec4dset (const FXdouble v[])
 Set value from array of doubles.
 
FXVec4dset (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)
 Set value from components.
 
FXVec4doperator*= (FXdouble n)
 Assigning operators.
 
FXVec4doperator/= (FXdouble n)
 
FXVec4doperator+= (const FXVec4d &v)
 
FXVec4doperator-= (const FXVec4d &v)
 
 operator FXdouble * ()
 Conversion.
 
 operator const FXdouble * () const
 
 operator FXVec3d & ()
 
 operator const FXVec3d & () const
 
FXbool operator! () const
 Test if zero.
 
FXVec4d operator+ () const
 Unary.
 
FXVec4d operator- () const
 
FXdouble length2 () const
 Length and square of length.
 
FXdouble length () const
 
FXVec4dclamp (FXdouble lo, FXdouble hi)
 Clamp values of vector between limits.
 
FXdouble distance (const FXVec3d &p) const
 Signed distance normalized plane and point.
 
FXbool crosses (const FXVec3d &a, const FXVec3d &b) const
 Return true if edge a-b crosses plane.
 
 ~FXVec4d ()
 Destructor.
 

Public Attributes

FXdouble x
 
FXdouble y
 
FXdouble z
 
FXdouble w
 

Detailed Description

Double-precision 4-element vector.


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

Copyright © 1997-2018 Jeroen van der Zijp