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

FX::FXVec2f Class Reference

Single-precision 2-element vector. More...

#include <FXVec2f.h>

Public Member Functions

 FXVec2f ()
 Default constructor; value is not initialized.
 
 FXVec2f (const FXVec2f &v)
 Initialize from another vector.
 
 FXVec2f (const FXfloat v[])
 Initialize from array of floats.
 
 FXVec2f (FXfloat xx, FXfloat yy)
 Initialize 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.
 
FXVec2foperator= (const FXVec2f &v)
 Assignment.
 
FXVec2foperator= (const FXfloat v[])
 Assignment from array of floats.
 
FXVec2fset (const FXVec2f &v)
 Set value from another vector.
 
FXVec2fset (const FXfloat v[])
 Set value from array of floats.
 
FXVec2fset (FXfloat xx, FXfloat yy)
 Set value from components.
 
FXVec2foperator*= (FXfloat n)
 Assigning operators.
 
FXVec2foperator/= (FXfloat n)
 
FXVec2foperator+= (const FXVec2f &v)
 Element-wise assigning operators.
 
FXVec2foperator-= (const FXVec2f &v)
 
FXVec2foperator%= (const FXVec2f &v)
 
FXVec2foperator/= (const FXVec2f &v)
 
 operator FXfloat * ()
 Conversions.
 
 operator const FXfloat * () const
 
FXbool operator! () const
 Test if zero.
 
FXVec2f operator+ () const
 Unary.
 
FXVec2f operator- () const
 
FXfloat length2 () const
 Length and square of length.
 
FXfloat length () const
 
 ~FXVec2f ()
 Destructor.
 

Public Attributes

FXfloat x
 
FXfloat y
 

Detailed Description

Single-precision 2-element vector.


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

Copyright © 1997-2022 Jeroen van der Zijp