Coord_System
A coordinate system is a set of axes and origin serving as reference
for defining coordinates. It also defines a
distance metric on coordinates.
Implementations:
- Coord_System_Euclidean
Measures distance as the square
root of the sum of squared differences between coordinates.
- Coord_System_Euclidean2
Measures distance as the sum
of squared differences between coordinates (Like Euclidean, but no root).
- Coord_System_Manhattan
Measures distance as the
sum of absolute differences between coordinates.
Member functions:
- distance: Coord_System . Coords . Coords -> double
Returns the distance between the two coords of the coordinate system.
- num_axes: Coord_System -> int
Returns the number of axes
for the coordinate system.