List of all members.
Public Member Functions |
|
| Vector (real _x, real _y, real _z) |
|
| Vector (const Vector &v) |
|
| Vector (const std::pair< real, real > &p) |
|
real | getX () const |
|
real | getY () const |
|
real | getZ () const |
|
void | setX (real newX) |
|
void | setY (real newY) |
|
void | setZ (real newZ) |
|
real | magnitude () const |
|
Vector | unit () const |
|
Vector & | normalize () |
|
Vector & | operator+= (const Vector &v) |
|
Vector | operator+ (const Vector &v) const |
|
Vector & | operator-= (const Vector &v) |
|
Vector | operator- (const Vector &v) const |
|
Vector | operator- () const |
|
Vector & | operator*= (const real c) |
|
Vector | operator* (const real c) const |
|
real | operator* (const Vector &v) const |
|
Vector | project (const Vector &v) const |
|
real | squareMagnitude () const |
|
real | scalarProduct (const Vector &v) const |
|
Vector | perp2D () const |
|
Vector | crossProduct (const Vector &v) const |
|
Vector & | operator%= (const Vector &v) |
|
Vector | operator% (const Vector &v) const |
|
void | reset () |
Protected Attributes |
|
real | x |
|
real | y |
|
real | z |
|
real | pad |
Friends |
|
Vector | operator* (real c, const Vector &v) |
|
std::ostream & | operator<< (std::ostream &os, const Vector &v) |
The documentation for this class was generated from the following file: