Package org.arakhne.afc.math.geometry.d2
Class Tuple2fComparator
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.Tuple2fComparator
-
- All Implemented Interfaces:
Comparator<Tuple2D<?>>
public class Tuple2fComparator extends Object implements Comparator<Tuple2D<?>>
Comparator of Tuple2D on their floating-point coordinates.For comparisons on the integer coordinates, see
Tuple2iComparator
.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- See Also:
Tuple2iComparator
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description Tuple2fComparator()
Construct a comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Tuple2D<?> tuple1, Tuple2D<?> tuple2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
@Pure public int compare(Tuple2D<?> tuple1, Tuple2D<?> tuple2)
- Specified by:
compare
in interfaceComparator<Tuple2D<?>>
-
-