Package com.esri.core.geometry
Class Envelope1D
java.lang.Object
com.esri.core.geometry.Envelope1D
- All Implemented Interfaces:
Serializable
A 1-dimensional interval.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
double
double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) double
boolean
contains
(double v) boolean
contains
(Envelope1D other) Returns True if the envelope contains the other envelope (boundary inclusive).boolean
double
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
(package private) void
void
setCoords
(double _vmin, double _vmax) void
setCoords
(Envelope1D other) (package private) void
setCoordsNoNaN_
(double vmin_, double vmax_) void
setEmpty()
void
double
snapClip
(double v)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
vmin
public double vmin -
vmax
public double vmax
-
-
Constructor Details
-
Envelope1D
public Envelope1D() -
Envelope1D
public Envelope1D(double _vmin, double _vmax) -
Envelope1D
-
-
Method Details
-
setCoords
public void setCoords(double _vmin, double _vmax) -
setCoords
-
normalize
public void normalize() -
setEmpty
public void setEmpty() -
isEmpty
public boolean isEmpty() -
setInfinite
public void setInfinite() -
merge
public void merge(double v) -
merge
-
mergeNE
public void mergeNE(double v) -
contains
public boolean contains(double v) -
contains
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
-
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
-
hashCode
public int hashCode()
-