compareTo
Compares two Vectors lexicographically (x, then y, then z).
Compares first by x-coordinate, then by y-coordinate if x values are equal, and finally by z-coordinate if both x and y values are equal.
Example:
val v1 = Vector(1.0, 2.0, 3.0)
val v2 = Vector(1.0, 3.0, 2.0)
val comparison = v1 < v2 // true (because y1 < y2)Content copied to clipboard
Return
Negative if this < other, positive if this > other, zero if equal
Parameters
other
The Vector to compare to