#include <Vector2.hh>
Public Member Functions | |
double | Length () const |
double | LengthSquare () const |
double | Norm () const |
Vector2 | Normal () |
Vector2 | NormalAntiClockwise () |
Vector2 | NormalClockwise () |
void | Normalise () |
double | NormSquare () const |
Vector2 & | operator*= (double s) |
Vector2 & | operator+= (const Vector2 &v) |
Vector2 & | operator-= (const Vector2 &v) |
Vector2 & | operator/= (double s) throw (Except) |
void | Set (double xi, double yi) |
Vector2 () | |
Vector2 (double xx, double yy) | |
Public Attributes | |
double | x |
double | y |
2D vector class.
Definition at line 20 of file Vector2.hh.
P::Vector2::Vector2 | ( | double | xx, |
double | yy | ||
) |
double P::Vector2::Length | ( | ) | const |
double P::Vector2::LengthSquare | ( | ) | const |
double P::Vector2::Norm | ( | ) | const |
void P::Vector2::Normalise | ( | ) |
double P::Vector2::NormSquare | ( | ) | const |
Vector2& P::Vector2::operator*= | ( | double | s | ) |
void P::Vector2::Set | ( | double | xi, |
double | yi | ||
) | [inline] |
Definition at line 28 of file Vector2.hh.
double P::Vector2::x |
Definition at line 23 of file Vector2.hh.
double P::Vector2::y |
Definition at line 24 of file Vector2.hh.