#include <Points.h>
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 |
n | The dimension of the point. |
|
|
|
Allow access to the dimension of the point.
|
|
Default constructor; creates a point of all zeros.
|
|
Constructor for a 2-d point.
|
|
Constructor for a 3-d point.
|
|
Constructor for a 4-d point.
|
|
Construct a PointNd from a VecNd.
|
|
Set all coordinates to zero.
|
|
Multiply by a scalar + assign.
|
|
Add + assign op.
|
|
Add + assign using a VecNd.
|
|
Subtract + assign op.
|
|
Subtract + assign using a VecNd.
|
|
Divide by a scalar + assign.
|
|
Return a coordinate of the point by reference.
|
|
Return a coordinate of the point.
|
|
|