![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Double-precision 2-element vector. More...
#include <FXVec2d.h>
Public Member Functions | |
| FXVec2d () | |
| Default constructor; value is not initialized. | |
| FXVec2d (FXdouble d) | |
| Initialize with constant. | |
| FXVec2d (FXdouble xx, FXdouble yy) | |
| Initialize from components. | |
| FXVec2d (const FXVec2d &v) | |
| Initialize from another vector. | |
| FXVec2d (const FXdouble v[]) | |
| Initialize from array of doubles. | |
| 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. | |
| FXVec2d & | operator= (const FXVec2d &v) |
| Assignment. | |
| FXVec2d & | operator= (const FXdouble v[]) |
| Assignment from array of doubles. | |
| FXVec2d & | set (FXdouble dd) |
| Assign with constant. | |
| FXVec2d & | set (FXdouble xx, FXdouble yy) |
| Set value from components. | |
| FXVec2d & | set (const FXVec2d &v) |
| Set value from another vector. | |
| FXVec2d & | set (const FXdouble v[]) |
| Set value from array of doubles. | |
| FXVec2d & | operator*= (FXdouble n) |
| Assigning operators. | |
| FXVec2d & | operator/= (FXdouble n) |
| FXVec2d & | operator+= (const FXVec2d &v) |
| Element-wise assigning operators. | |
| FXVec2d & | operator-= (const FXVec2d &v) |
| FXVec2d & | operator%= (const FXVec2d &v) |
| FXVec2d & | operator/= (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 |
| ~FXVec2d () | |
| Destructor. | |
Public Attributes | |
| FXdouble | x |
| FXdouble | y |
Double-precision 2-element vector.
|
|