public class FuzzyCompare
extends java.lang.Object
Constructor and Description |
---|
FuzzyCompare() |
Modifier and Type | Method and Description |
---|---|
static boolean |
eq(double reference,
double compare,
double range)
Fuzzy "equal" ( == ) comparison
|
static boolean |
eq(org.apache.commons.math3.geometry.euclidean.threed.Vector3D reference,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D compare,
double range)
Fuzzy "Equal" ( == ) comparison for vectors
|
static boolean |
gt(double reference,
double compare,
double range)
Fuzzy "Greater Than" ( > ) comparison
|
static boolean |
gte(double reference,
double compare,
double range)
Fuzzy "Greater Than or Equal" ( >= ) comparison
|
static boolean |
lt(double reference,
double compare,
double range)
Fuzzy "Lower Than" ( < ) comparison
|
static boolean |
lte(double reference,
double compare,
double range)
Fuzzy "Lower Than or Equal" ( <= ) comparison
|
public static boolean eq(double reference, double compare, double range)
reference
- Reference valuecompare
- Value to be compared to the referencerange
- The range within the two values are equalpublic static boolean gte(double reference, double compare, double range)
reference
- Reference valuecompare
- Value to be compared to the referencerange
- The range within the two values are considered equalpublic static boolean lte(double reference, double compare, double range)
reference
- Reference valuecompare
- Value to be compared to the referencerange
- The range within the two values are considered equalpublic static boolean gt(double reference, double compare, double range)
reference
- Reference valuecompare
- the lower of two valuesrange
- The range within the two values are considered equalpublic static boolean lt(double reference, double compare, double range)
reference
- Reference valuecompare
- Value to be compared to the referencerange
- The range within the two values are considered equalpublic static boolean eq(org.apache.commons.math3.geometry.euclidean.threed.Vector3D reference, org.apache.commons.math3.geometry.euclidean.threed.Vector3D compare, double range)
reference
- Reference valuecompare
- Value to be compared to the referencerange
- The range within the vector values are considered to be equal