public class FloatInterval
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
m_lowerBoundInclusive |
protected float |
m_upperBoundInclusive |
| Constructor and Description |
|---|
FloatInterval(float lowerBoundInclusive,
float upperBoundInclusive) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areIdentical(float value1,
float value2) |
boolean |
contains(float value) |
static boolean |
contains(float startInclusive,
float endInclusive,
float value) |
void |
enumerateNumbers(java.util.Collection<java.lang.Object> numbers) |
FloatInterval |
intersectWith(FloatInterval that)
Computes the intersection of this interval with the supplied one.
|
protected boolean |
isEqual(float lowerBoundInclusive,
float upperBoundInclusive) |
protected static boolean |
isIntervalEmpty(float lowerBoundInclusive,
float upperBoundInclusive) |
static boolean |
isNaN(int bits) |
static boolean |
isSmallerEqual(boolean positive1,
int magnitude1,
boolean positive2,
int magnitude2) |
static boolean |
isSmallerEqual(float value1,
float value2) |
static float |
nextFloat(float value) |
static float |
previousFloat(float value) |
static int |
subtractIntervalSizeFrom(float lowerBoundInclusive,
float upperBoundInclusive,
int argument) |
int |
subtractSizeFrom(int argument) |
java.lang.String |
toString() |
protected final float m_lowerBoundInclusive
protected final float m_upperBoundInclusive
public FloatInterval(float lowerBoundInclusive,
float upperBoundInclusive)
public FloatInterval intersectWith(FloatInterval that)
protected boolean isEqual(float lowerBoundInclusive,
float upperBoundInclusive)
public int subtractSizeFrom(int argument)
public boolean contains(float value)
public void enumerateNumbers(java.util.Collection<java.lang.Object> numbers)
public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isNaN(int bits)
protected static boolean isIntervalEmpty(float lowerBoundInclusive,
float upperBoundInclusive)
public static boolean areIdentical(float value1,
float value2)
public static float nextFloat(float value)
public static float previousFloat(float value)
public static int subtractIntervalSizeFrom(float lowerBoundInclusive,
float upperBoundInclusive,
int argument)
public static boolean contains(float startInclusive,
float endInclusive,
float value)
public static boolean isSmallerEqual(float value1,
float value2)
public static boolean isSmallerEqual(boolean positive1,
int magnitude1,
boolean positive2,
int magnitude2)