geom::PointNd< n > Class Template Reference

#include <Points.h>

List of all members.

Public Types

typedef double Coord
enum  { Dim = n }
 Allow access to the dimension of the point. More...

Public Member Functions

 PointNd ()
 Default constructor; creates a point of all zeros.
 PointNd (double a, double b)
 Constructor for a 2-d point.
 PointNd (double a, double b, double c)
 Constructor for a 3-d point.
 PointNd (double a, double b, double c, double d)
 Constructor for a 4-d point.
 PointNd (const VecNd< n > &)
 Construct a PointNd from a VecNd.
double operator[] (int ii) const
 Return a coordinate of the point.
double & operator[] (int ii)
 Return a coordinate of the point by reference.
PointNd< n > & operator+= (const VecNd< n > &)
 Add + assign using a VecNd.
PointNd< n > & operator-= (const VecNd< n > &)
 Subtract + assign using a VecNd.
PointNd< n > & operator+= (const PointNd< n > &)
 Add + assign op.
PointNd< n > & operator-= (const PointNd< n > &)
 Subtract + assign op.
PointNd< n > & operator *= (double)
 Multiply by a scalar + assign.
PointNd< n > & operator/= (double)
 Divide by a scalar + assign.
void makeZero ()
 Set all coordinates to zero.

Friends

class boost::serialization::access


Detailed Description

template<int n>
class geom::PointNd< n >

An n-dimensional point.
Parameters:
n The dimension of the point.


Member Typedef Documentation

template<int n>
typedef double geom::PointNd< n >::Coord
 


Member Enumeration Documentation

template<int n>
anonymous enum
 

Allow access to the dimension of the point.

Enumerator:
Dim 


Constructor & Destructor Documentation

template<int n>
geom::PointNd< n >::PointNd  )  [inline]
 

Default constructor; creates a point of all zeros.

template<int n>
geom::PointNd< n >::PointNd double  a,
double  b
[inline]
 

Constructor for a 2-d point.

template<int n>
geom::PointNd< n >::PointNd double  a,
double  b,
double  c
[inline]
 

Constructor for a 3-d point.

template<int n>
geom::PointNd< n >::PointNd double  a,
double  b,
double  c,
double  d
[inline]
 

Constructor for a 4-d point.

template<int n>
geom::PointNd< n >::PointNd const VecNd< n > &   )  [inline, explicit]
 

Construct a PointNd from a VecNd.


Member Function Documentation

template<int n>
void geom::PointNd< n >::makeZero  )  [inline]
 

Set all coordinates to zero.

template<int n>
PointNd< n > & geom::PointNd< n >::operator *= double   )  [inline]
 

Multiply by a scalar + assign.

template<int n>
PointNd< n > & geom::PointNd< n >::operator+= const PointNd< n > &   )  [inline]
 

Add + assign op.

template<int n>
PointNd< n > & geom::PointNd< n >::operator+= const VecNd< n > &   )  [inline]
 

Add + assign using a VecNd.

template<int n>
PointNd< n > & geom::PointNd< n >::operator-= const PointNd< n > &   )  [inline]
 

Subtract + assign op.

template<int n>
PointNd< n > & geom::PointNd< n >::operator-= const VecNd< n > &   )  [inline]
 

Subtract + assign using a VecNd.

template<int n>
PointNd< n > & geom::PointNd< n >::operator/= double   )  [inline]
 

Divide by a scalar + assign.

template<int n>
double& geom::PointNd< n >::operator[] int  ii  )  [inline]
 

Return a coordinate of the point by reference.

template<int n>
double geom::PointNd< n >::operator[] int  ii  )  const [inline]
 

Return a coordinate of the point.


Friends And Related Function Documentation

template<int n>
friend class boost::serialization::access [friend]
 


The documentation for this class was generated from the following file:
Generated on Tue Jan 29 21:37:58 2008 for VoluMill Universal Client by  doxygen 1.4.6