Package org.orekit.rugged.utils
Class Selector
- java.lang.Object
-
- org.orekit.rugged.utils.Selector
-
- Direct Known Subclasses:
MaxSelector
,MinSelector
public abstract class Selector extends Object
Class for selecting one value among two.- Author:
- Luc Maisonobe
- See Also:
MinSelector
,MaxSelector
-
-
Constructor Summary
Constructors Constructor Description Selector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
select(double v1, double v2)
Select a value.abstract boolean
selectFirst(double v1, double v2)
Check if first value should be selected.
-
-
-
Method Detail
-
selectFirst
public abstract boolean selectFirst(double v1, double v2)
Check if first value should be selected.- Parameters:
v1
- first valuev2
- second value- Returns:
- true if v1 should be selected
-
select
public double select(double v1, double v2)
Select a value.- Parameters:
v1
- first valuev2
- second value- Returns:
- selected value
-
-