Package com.esri.core.geometry
Class Envelope3D
- java.lang.Object
-
- com.esri.core.geometry.Envelope3D
-
- All Implemented Interfaces:
java.io.Serializable
public final class Envelope3D extends java.lang.Object implements java.io.Serializable
A class that represents axis parallel 3D rectangle.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Envelope3D()
Envelope3D(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
Envelope3D(Envelope3D other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Envelope3D
construct(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
void
construct(Envelope1D xinterval, Envelope1D yinterval, Envelope1D zinterval)
boolean
contains(Envelope3D other)
Returns True if the envelope contains the other envelope (boundary inclusive).void
copyTo(Envelope2D env)
boolean
equals(java.lang.Object _other)
double
getDepth()
double
getHeight()
double
getWidth()
boolean
hasEmptyDimension()
int
hashCode()
void
inflate(double dx, double dy, double dz)
boolean
intersect(Envelope3D other)
Intersects this envelope with the other and stores result in this envelope.boolean
isEmpty()
boolean
isEmptyZ()
boolean
isIntersecting(Envelope3D other)
Checks if this envelope intersects the other.void
merge(double x, double y, double z)
void
merge(double x1, double y1, double z1, double x2, double y2, double z2)
void
merge(Envelope3D other)
void
merge(Point3D pt)
void
mergeNE(double x, double y, double z)
void
move(Point3D vector)
void
normalize()
void
queryCorners(Point3D[] corners)
void
setCoords(double _x, double _y, double _z)
void
setCoords(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
void
setCoords(Envelope3D envSrc)
void
setCoords(Point3D center, double width, double height, double depth)
void
setEmpty()
void
setEmptyZ()
void
setFromPoints(Point3D[] points)
void
setInfinite()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
xmin
public double xmin
-
ymin
public double ymin
-
zmin
public double zmin
-
xmax
public double xmax
-
ymax
public double ymax
-
zmax
public double zmax
-
-
Constructor Detail
-
Envelope3D
public Envelope3D(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
-
Envelope3D
public Envelope3D()
-
Envelope3D
public Envelope3D(Envelope3D other)
-
-
Method Detail
-
construct
public static Envelope3D construct(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
-
setInfinite
public void setInfinite()
-
setEmpty
public void setEmpty()
-
isEmpty
public boolean isEmpty()
-
setEmptyZ
public void setEmptyZ()
-
isEmptyZ
public boolean isEmptyZ()
-
hasEmptyDimension
public boolean hasEmptyDimension()
-
setCoords
public void setCoords(double _xmin, double _ymin, double _zmin, double _xmax, double _ymax, double _zmax)
-
setCoords
public void setCoords(double _x, double _y, double _z)
-
setCoords
public void setCoords(Point3D center, double width, double height, double depth)
-
setCoords
public void setCoords(Envelope3D envSrc)
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
getDepth
public double getDepth()
-
move
public void move(Point3D vector)
-
normalize
public void normalize()
-
copyTo
public void copyTo(Envelope2D env)
-
mergeNE
public void mergeNE(double x, double y, double z)
-
merge
public void merge(double x, double y, double z)
-
merge
public void merge(Point3D pt)
-
merge
public void merge(Envelope3D other)
-
merge
public void merge(double x1, double y1, double z1, double x2, double y2, double z2)
-
inflate
public void inflate(double dx, double dy, double dz)
-
isIntersecting
public boolean isIntersecting(Envelope3D other)
Checks if this envelope intersects the other.- Returns:
- True if this envelope intersects the other.
-
intersect
public boolean intersect(Envelope3D other)
Intersects this envelope with the other and stores result in this envelope.- Returns:
- True if this envelope intersects the other, otherwise sets this envelope to empty state and returns False.
-
contains
public boolean contains(Envelope3D other)
Returns True if the envelope contains the other envelope (boundary inclusive).
-
equals
public boolean equals(java.lang.Object _other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
construct
public void construct(Envelope1D xinterval, Envelope1D yinterval, Envelope1D zinterval)
-
queryCorners
public void queryCorners(Point3D[] corners)
-
setFromPoints
public void setFromPoints(Point3D[] points)
-
-