Package net.anwiba.spatial.coordinate
Class Envelope
java.lang.Object
net.anwiba.spatial.coordinate.Envelope
- All Implemented Interfaces:
Serializable,IEnvelope
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic IEnvelopecreate(double minX, double minY, double maxX, double maxY) static IEnvelopestatic IEnvelopecreate(ICoordinate minimum, ICoordinate maximum) booleancross(ICoordinate c0, ICoordinate c1) booleangetCoordinateSequence(int steps) intdoubledoublegetWidth()doublegetX()doublegetY()inthashCode()booleaninteract(double x, double y) booleaninteract(ICoordinate coordinate) booleanintersection(IEnvelope other) booleantoString()withAltitude(double from, double to) withMeasured(double from, double to)
-
Field Details
-
NULL_ENVELOPE
-
-
Constructor Details
-
Envelope
public Envelope(double[] min, double[] max, boolean isMeasured)
-
-
Method Details
-
create
-
create
-
create
-
isMeasured
public boolean isMeasured()- Specified by:
isMeasuredin interfaceIEnvelope
-
getX
public double getX() -
getY
public double getY() -
getWidth
public double getWidth() -
getHeight
public double getHeight() -
getMaximum
- Specified by:
getMaximumin interfaceIEnvelope
-
getMinimum
- Specified by:
getMinimumin interfaceIEnvelope
-
equals
-
hashCode
public int hashCode() -
toString
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceIEnvelope
-
getCenterCoordinate
- Specified by:
getCenterCoordinatein interfaceIEnvelope
-
interact
-
interact
public boolean interact(double x, double y) -
interact
-
contains
-
cross
-
getCoordinateSequence
- Specified by:
getCoordinateSequencein interfaceIEnvelope
-
getCoordinateSequence
- Specified by:
getCoordinateSequencein interfaceIEnvelope
-
concat
-
intersection
- Specified by:
intersectionin interfaceIEnvelope
-
withMeasured
- Specified by:
withMeasuredin interfaceIEnvelope
-
withAltitude
- Specified by:
withAltitudein interfaceIEnvelope
-