public class ElevationMask extends BaseCollection<ElevationRise> implements IEquatable<ElevationMask>
AzimuthElevationMask
.
This class defines how the view is obscured in a particular direction.Constructor and Description |
---|
ElevationMask()
Initializes a new instance.
|
ElevationMask(double azimuth,
double elevation)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
boolean |
equalsType(ElevationMask other)
Indicates whether another instance of this type is exactly equal to this instance.
|
double |
getAzimuth()
Gets the azimuth of the ray, in radians.
|
double |
getElevation()
Gets the maximum obscured elevation angle along the ray, in radians.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
void |
setAzimuth(double value)
Sets the azimuth of the ray, in radians.
|
void |
setElevation(double value)
Sets the maximum obscured elevation angle along the ray, in radians.
|
add, add, addAll, addAll, clear, clearItems, contains, containsAll, get, getItems, indexOf, insertItem, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeItem, retainAll, set, setItem, size, subList, toArray, toArray
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public ElevationMask()
public ElevationMask(double azimuth, double elevation)
azimuth
- The azimuth of the ray, in radians.elevation
- The maximum obscured elevation along the ray, in radians.public final double getAzimuth()
public final void setAzimuth(double value)
public final double getElevation()
public final void setElevation(double value)
public boolean equals(Object obj)
equals
in interface Collection<ElevationRise>
equals
in interface List<ElevationRise>
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(ElevationMask other)
equalsType
in interface IEquatable<ElevationMask>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in interface Collection<ElevationRise>
hashCode
in interface List<ElevationRise>
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)