GeoEnvelope

public class GeoEnvelope implements IJSONStore

Fields

enumGISPtPosBottom

public static final int enumGISPtPosBottom

enumGISPtPosLeft

public static final int enumGISPtPosLeft

enumGISPtPosRight

public static final int enumGISPtPosRight

enumGISPtPosTop

public static final int enumGISPtPosTop

mMaxX

protected Double mMaxX

mMaxY

protected Double mMaxY

mMinX

protected Double mMinX

mMinY

protected Double mMinY

Constructors

GeoEnvelope

public GeoEnvelope()

GeoEnvelope

public GeoEnvelope(double minX, double maxX, double minY, double maxY)

GeoEnvelope

public GeoEnvelope(GeoEnvelope env)

Methods

adjust

public void adjust(double ratio)

contains

public final boolean contains(GeoEnvelope other)

contains

public final boolean contains(GeoPoint pt)

fix

public void fix()

fromJSON

public void fromJSON(JSONObject jsonObject)

getArea

public final double getArea()

getCenter

public final GeoPoint getCenter()

getMaxX

public final double getMaxX()

getMaxY

public final double getMaxY()

getMinX

public final double getMinX()

getMinY

public final double getMinY()

height

public final double height()

intersect

public void intersect(GeoEnvelope other)

intersects

public final boolean intersects(GeoEnvelope other)

isInit

public final boolean isInit()

isInside

public boolean isInside(GeoPoint pt, int nPos)

Sutherland-Hodgman Polygon Clipping

Параметры:
  • pt – Test point
  • nPos – Test type
Результат:

true if point inside envelope or false

merge

public void merge(GeoEnvelope other)

merge

public void merge(double dfX, double dfY)

offset

public void offset(double x, double y)

scale

public void scale(double scale)

set

public void set(GeoEnvelope env)

setMax

public void setMax(double x, double y)

setMaxX

public void setMaxX(double x)

setMaxY

public void setMaxY(double y)

setMin

public void setMin(double x, double y)

setMinX

public void setMinX(double x)

setMinY

public void setMinY(double y)

toJSON

public JSONObject toJSON()

toString

public String toString()

unInit

public void unInit()

width

public final double width()