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

FX::FXVec3d Class Reference

Double-precision 3-element vector. More...

#include <FXVec3d.h>

Public Member Functions

 FXVec3d ()
 Default constructor; value is not initialized.
 
 FXVec3d (FXdouble d)
 Initialize all components the same.
 
 FXVec3d (const FXVec2d &v, FXdouble s=0.0)
 Initialize from 2-vector.
 
 FXVec3d (const FXVec3d &v)
 Initialize from another vector.
 
 FXVec3d (const FXdouble v[])
 Initialize from array of doubles.
 
 FXVec3d (FXdouble xx, FXdouble yy, FXdouble zz)
 Initialize from 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.
 
FXVec3doperator= (const FXVec3d &v)
 Assignment.
 
FXVec3doperator= (const FXdouble v[])
 Assignment from array of doubles.
 
FXVec3dset (FXdouble d)
 Assign with constant.
 
FXVec3dset (FXdouble xx, FXdouble yy, FXdouble zz)
 Set value from components.
 
FXVec3dset (const FXVec3d &v)
 Set value from another vector.
 
FXVec3dset (const FXdouble v[])
 Set from array of doubles.
 
FXVec3doperator*= (FXdouble n)
 Assigning operators.
 
FXVec3doperator/= (FXdouble n)
 
FXVec3doperator+= (const FXVec3d &v)
 Element-wise assigning operators.
 
FXVec3doperator-= (const FXVec3d &v)
 
FXVec3doperator%= (const FXVec3d &v)
 
FXVec3doperator^= (const FXVec3d &v)
 Cross product assigning operator.
 
 operator FXdouble * ()
 Conversions.
 
 operator const FXdouble * () const
 
 operator FXVec2d & ()
 
 operator const FXVec2d & () const
 
FXbool operator! () const
 Test if zero.
 
FXVec3d operator+ () const
 Unary.
 
FXVec3d operator- () const
 
FXdouble length2 () const
 Length and square of length.
 
FXdouble length () const
 
 ~FXVec3d ()
 Destructor.
 

Public Attributes

FXdouble x
 
FXdouble y
 
FXdouble z
 

Detailed Description

Double-precision 3-element vector.


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

Copyright © 1997-2022 Jeroen van der Zijp