Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Double-precision 4-element vector. More...
#include <FXVec4d.h>
Public Member Functions | |
FXVec4d () | |
Default constructor; value is not initialized. | |
FXVec4d (FXdouble d) | |
Initialize all components the same. | |
FXVec4d (const FXVec3d &v, FXdouble s=0.0) | |
Construct with 3-vector. | |
FXVec4d (const FXVec4d &v) | |
Initialize from another vector. | |
FXVec4d (const FXdouble v[]) | |
Initialize from array of doubles. | |
FXVec4d (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww) | |
Initialize with 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. | |
FXVec4d & | operator= (const FXVec4d &v) |
Assignment. | |
FXVec4d & | operator= (const FXdouble v[]) |
Assignment from array of doubles. | |
FXVec4d & | set (FXdouble d) |
Assign with constant. | |
FXVec4d & | set (FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww) |
Set value from components. | |
FXVec4d & | set (const FXVec4d &v) |
Set value from another vector. | |
FXVec4d & | set (const FXdouble v[]) |
Set value from array of doubles. | |
FXVec4d & | operator*= (FXdouble n) |
Assigning operators. | |
FXVec4d & | operator/= (FXdouble n) |
FXVec4d & | operator+= (const FXVec4d &v) |
Element-wise assigning operators. | |
FXVec4d & | operator-= (const FXVec4d &v) |
FXVec4d & | operator%= (const FXVec4d &v) |
FXVec4d & | operator/= (const FXVec4d &v) |
operator FXdouble * () | |
Conversion. | |
operator const FXdouble * () const | |
operator FXVec3d & () | |
operator const FXVec3d & () const | |
FXbool | operator! () const |
Test if zero. | |
FXVec4d | operator+ () const |
Unary. | |
FXVec4d | operator- () const |
FXdouble | length2 () const |
Length and square of length. | |
FXdouble | length () const |
FXdouble | distance (const FXVec3d &p) const |
Signed distance normalized plane and point. | |
FXbool | crosses (const FXVec3d &a, const FXVec3d &b) const |
Return true if edge a-b crosses plane. | |
~FXVec4d () | |
Destructor. | |
Public Attributes | |
FXdouble | x |
FXdouble | y |
FXdouble | z |
FXdouble | w |
Double-precision 4-element vector.
Copyright © 1997-2022 Jeroen van der Zijp |