|
Public Types |
| typedef double | Coord |
| enum | { Dim = n
} |
| | Allow access to the dimension of the point. More...
|
Public Member Functions |
| | VecNd () |
| | Default constructor; creates a vector of all zeros.
|
| | VecNd (double a, double b) |
| | Constructor for a 2-d vector.
|
| | VecNd (double a, double b, double c) |
| | Constructor for a 3-d vector.
|
| | VecNd (double a, double b, double c, double d) |
| | Constructor for a 4-d vector.
|
| | VecNd (const PointNd< n > &) |
| | Construct a VecNd from a PointNd.
|
| double | operator[] (int ii) const |
| | Return a coordinate of the vector.
|
| double & | operator[] (int ii) |
| | Return a coordinate of the vector by reference.
|
| VecNd< n > & | operator+= (const VecNd< n > &) |
| | Add + assign op.
|
| VecNd< n > & | operator-= (const VecNd< n > &) |
| | Subtract + assign op.
|
| VecNd< n > & | operator *= (double) |
| | Multiply by a scalar + assign.
|
| VecNd< n > & | operator/= (double) |
| | Divide by a scalar + assign.
|
| void | makeZero () |
| | Set all coordinates to zero.
|
Friends |
| class | boost::serialization::access |