|
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 |