Package org.geolatte.geom.curve
Class MortonContext<P extends C2D>
- java.lang.Object
-
- org.geolatte.geom.curve.MortonContext<P>
-
-
Constructor Summary
Constructors Constructor Description MortonContext(Envelope<P> extent, int depth)Constructs aMortonContextwith the specified extent and max.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanextentContains(Envelope<P> envelope)Checks whether the specifiedEnvelopeis contained in the extent.booleanextentContains(P pos)Checks whether the specifiedPointis contained in the extent.CoordinateReferenceSystem<?>getCoordinateReferenceSystem()Returns the CrsId of the spatial extentintgetDepth()Returns the maximum tree-depthEnvelope<P>getExtent()Returns the spatial extent of this instancedoublegetMaxX()Returns the maximum X-coordinate of the extent.doublegetMaxY()Returns the maximum Y-coordinate of the extent.doublegetMinX()Returns the minimum X-coordinate of the extentdoublegetMinY()Returns the minimum Y-coordinate of the extent
-
-
-
Method Detail
-
getMaxX
public double getMaxX()
Returns the maximum X-coordinate of the extent.- Returns:
- the maximum X-coordinate of the extent
-
getMaxY
public double getMaxY()
Returns the maximum Y-coordinate of the extent.- Returns:
- the maximum Y-coordinate of the extent
-
getMinX
public double getMinX()
Returns the minimum X-coordinate of the extent- Returns:
- the minimum X-coordinate of the extent
-
getMinY
public double getMinY()
Returns the minimum Y-coordinate of the extent- Returns:
- the minimum Y-coordinate of the extent
-
getDepth
public int getDepth()
Returns the maximum tree-depth- Returns:
- the maximum tree-depth
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem<?> getCoordinateReferenceSystem()
Returns the CrsId of the spatial extent- Returns:
- the CrsId of the spatial extent
-
extentContains
public boolean extentContains(P pos)
Checks whether the specifiedPointis contained in the extent.- Parameters:
pos- aPointvalue- Returns:
- true if the specified point is contained in the extent, false otherwise
- Throws:
IllegalArgumentException- if the specified point does not share this extent'sCrsId
-
extentContains
public boolean extentContains(Envelope<P> envelope)
Checks whether the specifiedEnvelopeis contained in the extent.- Parameters:
envelope- anEnvelopevalue- Returns:
- true if the specified envelope is contained in the extent, false otherwise
- Throws:
IllegalArgumentException- if the specified envelope does not share this extent'sCrsId
-
-