Returns an integer whose sign communicates how x's projection on a given dimension compares to y's.
Returns an integer whose sign communicates how x's projection on a given dimension compares to y's.
Denote the projection of x and y on dimension
by x' and y' respectively. The result sign has
the following meaning:
- negative if x' < y' - positive if x' > y' - zero if x' == y'
How many dimensions type A has.
Returns an Ordering of A in which the given dimension is the primary ordering criteria.
Returns an Ordering of A in which the given dimension is the primary ordering criteria. If x and y have the same projection on that dimension, then they are compared on the lowest dimension that is different.
DimensionalOrdering is a trait whose instances each represent a strategy for ordering instances of a multidimensional type by a projection on a given dimension.