|
Pyrogenesis
13997
|
#include <FixedVector3D.h>
Public Member Functions | |
| CFixedVector3D () | |
| CFixedVector3D (fixed X, fixed Y, fixed Z) | |
| bool | operator== (const CFixedVector3D &v) const |
| Vector equality. More... | |
| bool | operator!= (const CFixedVector3D &v) const |
| Vector inequality. More... | |
| CFixedVector3D | operator+ (const CFixedVector3D &v) const |
| Vector addition. More... | |
| CFixedVector3D | operator- (const CFixedVector3D &v) const |
| Vector subtraction. More... | |
| CFixedVector3D | operator- () const |
| Negation. More... | |
| CFixedVector3D & | operator+= (const CFixedVector3D &v) |
| Vector addition. More... | |
| CFixedVector3D & | operator-= (const CFixedVector3D &v) |
| Vector subtraction. More... | |
| fixed | Length () const |
| Returns the length of the vector. More... | |
| void | Normalize () |
| Normalize the vector so that length is close to 1. More... | |
| void | Normalize (fixed n) |
| Normalize the vector so that length is close to n. More... | |
| CFixedVector3D | Cross (const CFixedVector3D &v) |
| Compute the cross product of this vector with another. More... | |
| fixed | Dot (const CFixedVector3D &v) |
| Compute the dot product of this vector with another. More... | |
Public Attributes | |
| fixed | X |
| fixed | Y |
| fixed | Z |
Definition at line 24 of file FixedVector3D.h.
|
inline |
Definition at line 29 of file FixedVector3D.h.
Definition at line 31 of file FixedVector3D.h.
|
inline |
Compute the cross product of this vector with another.
Definition at line 138 of file FixedVector3D.h.
|
inline |
Compute the dot product of this vector with another.
Definition at line 171 of file FixedVector3D.h.
|
inline |
Returns the length of the vector.
Will not overflow if the result can be represented as type 'fixed'.
Definition at line 82 of file FixedVector3D.h.
|
inline |
Normalize the vector so that length is close to 1.
If length is 0, does nothing.
Definition at line 109 of file FixedVector3D.h.
|
inline |
Normalize the vector so that length is close to n.
If length is 0, does nothing.
Definition at line 124 of file FixedVector3D.h.
|
inline |
Vector inequality.
Definition at line 40 of file FixedVector3D.h.
|
inline |
Vector addition.
Definition at line 46 of file FixedVector3D.h.
|
inline |
Vector addition.
Definition at line 64 of file FixedVector3D.h.
|
inline |
Vector subtraction.
Definition at line 52 of file FixedVector3D.h.
|
inline |
Negation.
Definition at line 58 of file FixedVector3D.h.
|
inline |
Vector subtraction.
Definition at line 71 of file FixedVector3D.h.
|
inline |
Vector equality.
Definition at line 34 of file FixedVector3D.h.
| fixed CFixedVector3D::X |
Definition at line 27 of file FixedVector3D.h.
| fixed CFixedVector3D::Y |
Definition at line 27 of file FixedVector3D.h.
| fixed CFixedVector3D::Z |
Definition at line 27 of file FixedVector3D.h.
1.8.5