Package com.esri.core.geometry
Class Envelope1D
- java.lang.Object
-
- com.esri.core.geometry.Envelope1D
-
- All Implemented Interfaces:
java.io.Serializable
public final class Envelope1D extends java.lang.Object implements java.io.Serializable
A 1-dimensional interval.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
double
vmax
double
vmin
-
Constructor Summary
Constructors Constructor Description Envelope1D()
Envelope1D(double _vmin, double _vmax)
Envelope1D(Envelope1D other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) double
_calculateToleranceFromEnvelope()
boolean
contains(double v)
boolean
contains(Envelope1D other)
Returns True if the envelope contains the other envelope (boundary inclusive).boolean
equals(java.lang.Object _other)
double
getCenter()
double
getWidth()
int
hashCode()
void
inflate(double delta)
void
intersect(Envelope1D other)
boolean
isEmpty()
void
merge(double v)
void
merge(Envelope1D other)
void
mergeNE(double v)
void
normalize()
(package private) void
normalizeNoNaN_()
void
setCoords(double _vmin, double _vmax)
void
setCoords(Envelope1D other)
(package private) void
setCoordsNoNaN_(double vmin_, double vmax_)
void
setEmpty()
void
setInfinite()
double
snapClip(double v)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
vmin
public double vmin
-
vmax
public double vmax
-
-
Constructor Detail
-
Envelope1D
public Envelope1D()
-
Envelope1D
public Envelope1D(double _vmin, double _vmax)
-
Envelope1D
public Envelope1D(Envelope1D other)
-
-
Method Detail
-
setCoords
public void setCoords(double _vmin, double _vmax)
-
setCoords
public void setCoords(Envelope1D other)
-
normalize
public void normalize()
-
setEmpty
public void setEmpty()
-
isEmpty
public boolean isEmpty()
-
setInfinite
public void setInfinite()
-
merge
public void merge(double v)
-
merge
public void merge(Envelope1D other)
-
mergeNE
public void mergeNE(double v)
-
contains
public boolean contains(double v)
-
contains
public boolean contains(Envelope1D other)
Returns True if the envelope contains the other envelope (boundary inclusive). Note: Will return false if either envelope is empty.- Parameters:
other
- The other envelope.- Returns:
- Return true if this contains the other.
-
intersect
public void intersect(Envelope1D other)
-
inflate
public void inflate(double delta)
-
_calculateToleranceFromEnvelope
double _calculateToleranceFromEnvelope()
-
normalizeNoNaN_
void normalizeNoNaN_()
-
setCoordsNoNaN_
void setCoordsNoNaN_(double vmin_, double vmax_)
-
snapClip
public double snapClip(double v)
-
getWidth
public double getWidth()
-
getCenter
public double getCenter()
-
equals
public boolean equals(java.lang.Object _other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-