Computes the distance between two coordinates in the space.
Computes the distance between two coordinates in the space.
Source coordinate to compute distance from
Destination coordinate to compute distance to
Distance from source to destination
Converts an array to the coordinate type.
Converts an array to the coordinate type.
Used in optimization functions that use the array representation as points in the system.
The function should be the inverse of toArray.
Array to convert
Coordinate representation of the array
Converts the coordinate type to an array form.
Converts the coordinate type to an array form.
Used in optimization functions that use the array representation as points in the system.
The function should be the inverse of fromArray.
The extracted array is a copy of the wrapped array of the class - any mutations done to the array returned will not impact the class instance.
Coordinate to convert
Array representation of the point
Type representing the coordinate type of the GCS.
DistanceComputable is intended to be used as a typeclass, representing a type of coordinate for a particular coordinate system (e.g. Euclidean, Hyperbolic).