Package net.anwiba.spatial.coordinate
Class Envelope
- java.lang.Object
-
- net.anwiba.spatial.coordinate.Envelope
-
- All Implemented Interfaces:
java.io.Serializable,IEnvelope
public class Envelope extends java.lang.Object implements IEnvelope
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IEnvelopeNULL_ENVELOPE
-
Constructor Summary
Constructors Constructor Description Envelope(double[] min, double[] max, boolean isMeasured)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IEnvelopeconcat(IEnvelope other)booleancontains(IEnvelope other)static IEnvelopecreate(double minX, double minY, double maxX, double maxY)static IEnvelopecreate(java.lang.String string)static IEnvelopecreate(ICoordinate minimum, ICoordinate maximum)booleancross(ICoordinate c0, ICoordinate c1)booleanequals(java.lang.Object obj)ICoordinategetCenterCoordinate()ICoordinateSequencegetCoordinateSequence()ICoordinateSequencegetCoordinateSequence(int steps)intgetDimension()doublegetHeight()ICoordinategetMaximum()ICoordinategetMinimum()doublegetWidth()doublegetX()doublegetY()inthashCode()booleaninteract(double x, double y)booleaninteract(ICoordinate coordinate)booleaninteract(IEnvelope other)IEnvelopeintersection(IEnvelope other)booleanisMeasured()java.lang.StringtoString()
-
-
-
Field Detail
-
NULL_ENVELOPE
public static final IEnvelope NULL_ENVELOPE
-
-
Method Detail
-
create
public static IEnvelope create(ICoordinate minimum, ICoordinate maximum)
-
create
public static IEnvelope create(double minX, double minY, double maxX, double maxY)
-
create
public static IEnvelope create(java.lang.String string)
-
isMeasured
public boolean isMeasured()
- Specified by:
isMeasuredin interfaceIEnvelope
-
getMaximum
public ICoordinate getMaximum()
- Specified by:
getMaximumin interfaceIEnvelope
-
getMinimum
public ICoordinate getMinimum()
- Specified by:
getMinimumin interfaceIEnvelope
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDimension
public int getDimension()
- Specified by:
getDimensionin interfaceIEnvelope
-
getCenterCoordinate
public ICoordinate getCenterCoordinate()
- Specified by:
getCenterCoordinatein interfaceIEnvelope
-
interact
public boolean interact(ICoordinate coordinate)
-
cross
public boolean cross(ICoordinate c0, ICoordinate c1)
-
getCoordinateSequence
public ICoordinateSequence getCoordinateSequence()
- Specified by:
getCoordinateSequencein interfaceIEnvelope
-
getCoordinateSequence
public ICoordinateSequence getCoordinateSequence(int steps)
- Specified by:
getCoordinateSequencein interfaceIEnvelope
-
intersection
public IEnvelope intersection(IEnvelope other)
- Specified by:
intersectionin interfaceIEnvelope
-
-