Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
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. | |
FXVec2f & | operator= (const FXVec2f &v) |
Assignment. | |
FXVec2f & | operator= (const FXfloat v[]) |
Assignment from array of floats. | |
FXVec2f & | set (const FXVec2f &v) |
Set value from another vector. | |
FXVec2f & | set (const FXfloat v[]) |
Set value from array of floats. | |
FXVec2f & | set (FXfloat xx, FXfloat yy) |
Set value from components. | |
FXVec2f & | operator*= (FXfloat n) |
Assigning operators. | |
FXVec2f & | operator/= (FXfloat n) |
FXVec2f & | operator+= (const FXVec2f &v) |
Element-wise assigning operators. | |
FXVec2f & | operator-= (const FXVec2f &v) |
FXVec2f & | operator%= (const FXVec2f &v) |
FXVec2f & | operator/= (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 |
Single-precision 2-element vector.
Copyright © 1997-2022 Jeroen van der Zijp |