public class MapRange
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
MapRange()
Constructs a MapRange object.
|
MapRange(float min,
float max)
Constructs a MapRange object from min and max values.
If min > max, the values will be swapped internally. |
MapRange(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to the specified object.
|
protected void |
finalize() |
static long |
getCPtr(MapRange obj) |
float |
getMax()
Returns the max value of this map range.
|
float |
getMin()
Returns the min value of this map range.
|
int |
hashCode()
Returns the hash value of this object.
|
boolean |
inRange(float value)
Tests if a value is in this map range.
|
float |
length()
Calculates the length of this map range.
|
java.lang.String |
toString()
Creates a string representation of this map range, useful for logging.
|
public MapRange(long cPtr, boolean cMemoryOwn)
public MapRange()
public MapRange(float min, float max)
min
- The min value.max
- The max value.public static long getCPtr(MapRange obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public float getMin()
public float getMax()
public boolean inRange(float value)
value
- The value to be tested.public float length()
public java.lang.String toString()
toString
in class java.lang.Object