![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#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 |
|
inline |
|
inline |
Compute the cross product of this vector with another.
|
inline |
Compute the dot product of this vector with another.
|
inline |
Returns the length of the vector.
Will not overflow if the result can be represented as type 'fixed'.
|
inline |
Normalize the vector so that length is close to 1.
If length is 0, does nothing.
|
inline |
Normalize the vector so that length is close to n.
If length is 0, does nothing.
|
inline |
Vector inequality.
|
inline |
Vector addition.
|
inline |
Vector addition.
|
inline |
Negation.
|
inline |
Vector subtraction.
|
inline |
Vector subtraction.
|
inline |
Vector equality.
| fixed CFixedVector3D::X |
| fixed CFixedVector3D::Y |
| fixed CFixedVector3D::Z |