Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Sources   Namespace Members   Compound Members   File Members  

vector2 Struct Reference

A 2 element vector. More...

#include <vector2.h>

List of all members.

Public Members

 vector2 (void)
 vector2 ( const double ix, const double iy )
 vector2 ( const vector2 &v )
double& operator[] ( const unsigned i )
double operator[] ( const unsigned i ) const
unsigned size (void) const
double x
double y


Detailed Description

A 2 element vector.

Using this class for a 2 element vector is more efficient and safer than using a generic vector<double>.

Definition at line 41 of file vector2.h.


Member Function Documentation

vector2::vector2 (void) [inline]

Definition at line 134 of file vector2.h.

vector2::vector2 (const double ix, const double iy) [inline]

Definition at line 139 of file vector2.h.

vector2::vector2 (const vector2 & v) [inline]

Definition at line 150 of file vector2.h.

double & vector2::operator[] (const unsigned i) [inline]

Definition at line 159 of file vector2.h.

double vector2::operator[] (const unsigned i) const [inline]

Definition at line 170 of file vector2.h.

unsigned vector2::size (void) const [inline]

Definition at line 181 of file vector2.h.


Member Data Documentation

double vector2::x

Definition at line 67 of file vector2.h.

double vector2::y

Definition at line 68 of file vector2.h.


The documentation for this struct was generated from the following file:
Generated at Sun Jul 14 20:38:21 2002 for Mapper by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999