public final class CylindricalBounds extends Object implements IEquatable<CylindricalBounds>, IEquatableEpsilon<CylindricalBounds>, ImmutableValueType
Cylindrical
values which form the bounds of a range of cylindrical coordinates.Constructor and Description |
---|
CylindricalBounds()
Initializes a new instance.
|
CylindricalBounds(Cylindrical lowerBound,
Cylindrical upperBound)
Holds two
Cylindrical values which form the bounds of a range of cylindrical coordinates. |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(CylindricalBounds left,
CylindricalBounds right)
Returns
true if the two instances are exactly equal. |
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
boolean |
equalsEpsilon(CylindricalBounds 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(CylindricalBounds other)
Indicates whether another instance of this type is exactly equal to this instance.
|
Bounds |
getClockBounds()
Gets the bounds for the Clock coordinate.
|
boolean |
getIsUndefined()
Gets a value indicating whether any of the bounds coordinates for this instance have the value
Double.NaN . |
Cylindrical |
getLowerBound()
Gets the minimal value defining the bounds.
|
Bounds |
getRadialBounds()
Gets the bounds for the Radial coordinate.
|
static CylindricalBounds |
getUndefined()
Gets a set of
CylindricalBounds with values of Double.NaN . |
Cylindrical |
getUpperBound()
Gets the maximal value defining the bounds.
|
Bounds |
getZBounds()
Gets the bounds for the Z 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(CylindricalBounds left,
CylindricalBounds right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public CylindricalBounds()
public CylindricalBounds(@Nonnull Cylindrical lowerBound, @Nonnull Cylindrical upperBound)
Cylindrical
values which form the bounds of a range of cylindrical 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 CylindricalBounds getUndefined()
CylindricalBounds
with values of Double.NaN
.
Use IsUndefined
(get
) to test whether a CylindricalBounds
instance
is undefined since it will return true
if any of the values
are Double.NaN
.
@Nonnull public final Cylindrical getLowerBound()
@Nonnull public final Cylindrical getUpperBound()
public boolean equals(Object obj)
equals
in class Object
obj
- 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()
,
HashMap
public final boolean equalsType(@Nonnull CylindricalBounds other)
equalsType
in interface IEquatable<CylindricalBounds>
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 CylindricalBounds other, double epsilon)
equalsEpsilon
in interface IEquatableEpsilon<CylindricalBounds>
other
- The set of CylindricalBounds
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 Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public String toString()
public static boolean equals(@Nonnull CylindricalBounds left, @Nonnull CylindricalBounds 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 CylindricalBounds left, @Nonnull CylindricalBounds 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 getClockBounds()
@Nonnull public final Bounds getRadialBounds()