Public Member Functions | Public Attributes
P::Vector2 Class Reference

#include <Vector2.hh>

List of all members.

Public Member Functions

double Length () const
double LengthSquare () const
double Norm () const
Vector2 Normal ()
Vector2 NormalAntiClockwise ()
Vector2 NormalClockwise ()
void Normalise ()
double NormSquare () const
Vector2operator*= (double s)
Vector2operator+= (const Vector2 &v)
Vector2operator-= (const Vector2 &v)
Vector2operator/= (double s) throw (Except)
void Set (double xi, double yi)
 Vector2 ()
 Vector2 (double xx, double yy)

Public Attributes

double x
double y

Detailed Description

2D vector class.

Definition at line 21 of file Vector2.hh.


Constructor & Destructor Documentation

P::Vector2::Vector2 ( double  xx,
double  yy 
)

Member Function Documentation

double P::Vector2::Length ( ) const
double P::Vector2::LengthSquare ( ) const
double P::Vector2::Norm ( ) const
double P::Vector2::NormSquare ( ) const
Vector2& P::Vector2::operator*= ( double  s)
Vector2& P::Vector2::operator+= ( const Vector2 v)
Vector2& P::Vector2::operator-= ( const Vector2 v)
Vector2& P::Vector2::operator/= ( double  s) throw (Except)
void P::Vector2::Set ( double  xi,
double  yi 
) [inline]

Definition at line 29 of file Vector2.hh.


Member Data Documentation

double P::Vector2::x

Definition at line 24 of file Vector2.hh.

double P::Vector2::y

Definition at line 25 of file Vector2.hh.


The documentation for this class was generated from the following file:


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:26