![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
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. | |
| FXVec3d & | operator= (const FXVec3d &v) |
| Assignment. | |
| FXVec3d & | operator= (const FXdouble v[]) |
| Assignment from array of doubles. | |
| FXVec3d & | set (FXdouble d) |
| Assign with constant. | |
| FXVec3d & | set (FXdouble xx, FXdouble yy, FXdouble zz) |
| Set value from components. | |
| FXVec3d & | set (const FXVec3d &v) |
| Set value from another vector. | |
| FXVec3d & | set (const FXdouble v[]) |
| Set from array of doubles. | |
| FXVec3d & | operator*= (FXdouble n) |
| Assigning operators. | |
| FXVec3d & | operator/= (FXdouble n) |
| FXVec3d & | operator+= (const FXVec3d &v) |
| Element-wise assigning operators. | |
| FXVec3d & | operator-= (const FXVec3d &v) |
| FXVec3d & | operator%= (const FXVec3d &v) |
| FXVec3d & | operator^= (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 |
Double-precision 3-element vector.
|
|