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

FX::FXVec2d Class Reference

Double-precision 2-element vector. More...

#include <FXVec2d.h>

Public Member Functions

 FXVec2d ()
 Default constructor; value is not initialized.
 
 FXVec2d (const FXVec2d &v)
 Initialize from another vector.
 
 FXVec2d (const FXdouble v[])
 Initialize from array of doubles.
 
 FXVec2d (FXdouble xx, FXdouble yy)
 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.
 
FXVec2doperator= (const FXVec2d &v)
 Assignment.
 
FXVec2doperator= (const FXdouble v[])
 Assignment from array of doubles.
 
FXVec2dset (const FXVec2d &v)
 Set value from another vector.
 
FXVec2dset (const FXdouble v[])
 Set value from array of doubles.
 
FXVec2dset (FXdouble xx, FXdouble yy)
 Set value from components.
 
FXVec2doperator*= (FXdouble n)
 Assigning operators.
 
FXVec2doperator/= (FXdouble n)
 
FXVec2doperator+= (const FXVec2d &v)
 
FXVec2doperator-= (const FXVec2d &v)
 
 operator FXdouble * ()
 Conversions.
 
 operator const FXdouble * () const
 
FXbool operator! () const
 Test if zero.
 
FXVec2d operator+ () const
 Unary.
 
FXVec2d operator- () const
 
FXdouble length2 () const
 Length and square of length.
 
FXdouble length () const
 
FXVec2dclamp (FXdouble lo, FXdouble hi)
 Clamp values of vector between limits.
 
 ~FXVec2d ()
 Destructor.
 

Public Attributes

FXdouble x
 
FXdouble y
 

Detailed Description

Double-precision 2-element vector.


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

Copyright © 1997-2018 Jeroen van der Zijp