public final class PyramidalBounds extends Object implements IEquatable<PyramidalBounds>, IEquatableEpsilon<PyramidalBounds>, ImmutableValueType
Pyramidal values which form the bounds of a range of pyramidal coordinates.| Constructor and Description |
|---|
PyramidalBounds()
Initializes a new instance.
|
PyramidalBounds(Pyramidal lowerBound,
Pyramidal upperBound)
Holds two
Pyramidal values which form the bounds of a range of pyramidal coordinates. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(PyramidalBounds left,
PyramidalBounds right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsEpsilon(PyramidalBounds other,
double epsilon)
Indicates whether each value of another instance of this type
is within the required tolerance of the corresponding value of this instance.
|
boolean |
equalsType(PyramidalBounds other)
Indicates whether another instance of this type is exactly equal to this instance.
|
boolean |
getIsUndefined()
Gets a value indicating whether any of the bounds coordinates for this instance have the value
Double.NaN. |
Pyramidal |
getLowerBound()
Gets the minimal value defining the bounds.
|
static PyramidalBounds |
getUndefined()
Gets a set of
PyramidalBounds with values of Double.NaN. |
Pyramidal |
getUpperBound()
Gets the maximal value defining the bounds.
|
Bounds |
getZBounds()
Gets the bounds for the Z coordinate.
|
Bounds |
getZXAngleBounds()
Gets the bounds for the ZXAngle coordinate.
|
Bounds |
getZYAngleBounds()
Gets the bounds for the ZYAngle coordinate.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(PyramidalBounds left,
PyramidalBounds right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public PyramidalBounds()
public PyramidalBounds(@Nonnull Pyramidal lowerBound, @Nonnull Pyramidal upperBound)
Pyramidal values which form the bounds of a range of pyramidal coordinates.lowerBound - The minimal values defining the bounds.upperBound - The maximal values defining the bounds.ArgumentException - Thrown when the upperBound is less than the lowerBound or when
one value in any of the coordinates is Double.NaN and the other is not.@Nonnull public static PyramidalBounds getUndefined()
PyramidalBounds with values of Double.NaN.
Use IsUndefined (get) to test whether a PyramidalBounds instance
is undefined since it will return true if any of the values
are Double.NaN.
@Nonnull public final Pyramidal getLowerBound()
@Nonnull public final Pyramidal getUpperBound()
public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(),
HashMappublic final boolean equalsType(@Nonnull PyramidalBounds other)
equalsType in interface IEquatable<PyramidalBounds>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public final boolean equalsEpsilon(@Nonnull PyramidalBounds other, double epsilon)
equalsEpsilon in interface IEquatableEpsilon<PyramidalBounds>other - The set of PyramidalBounds to compare to this instance.epsilon - The limit at which the absolute differences between the values will not be considered equal.true if the absolute differences are less than or equal to epsilon; otherwise false.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public String toString()
public static boolean equals(@Nonnull PyramidalBounds left, @Nonnull PyramidalBounds right)
true if the two instances are exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left represents the same value as right; otherwise false.public static boolean notEquals(@Nonnull PyramidalBounds left, @Nonnull PyramidalBounds right)
true if the two instances are not exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left does not represent the same value as right; otherwise false.public final boolean getIsUndefined()
Double.NaN.@Nonnull public final Bounds getZXAngleBounds()
@Nonnull public final Bounds getZYAngleBounds()