Physsim::Vector2 Class Reference

A two-dimensional floating point vector used for computational geometry calculations. More...

#include <Vector2.h>

Inheritance diagram for Physsim::Vector2:

Physsim::VectorN List of all members.

Public Member Functions

 Vector2 ()
 Default constructor.
 Vector2 (Real x, Real y)
 Constructs this vector with the given values.
 Vector2 (const boost::shared_array< Real > array)
 Constructs this vector from the given array.
 Vector2 (VectorNConstPtr v)
 Vector2 (const Vector2 &source)
 Copy constructor.
 Vector2 (const VectorN &source)
 Copy constructor.
void operator= (const Vector2 &source)
virtual void operator= (const VectorN &source)

Detailed Description

A two-dimensional floating point vector used for computational geometry calculations.


Constructor & Destructor Documentation

Vector2::Vector2 ( const boost::shared_array< Real >  array  ) 

Constructs this vector from the given array.

Parameters:
array a 2-dimensional (or larger) array

Vector2::Vector2 ( const VectorN source  ) 

Copy constructor.

Parameters:
source a 2-dimensional vector; if it is not 2-dimensional, an error message will be output to stderr and the operation will fail


The documentation for this class was generated from the following files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1