GeoExtent

GeoExtent

GeoExtent 表示经纬度坐标的矩形范围

Members

readonly center : Vector2

中心点

readonly height : number

纬度高度

readonly width : number

经度宽度

Methods

clone() → GeoExtent

复制

contains(lon,lat) → boolean

是否包含指定坐标
Name Type Description
lon number 经度
lat number 纬度

intersects(other) → boolean

判读与给定范围是否有相交
Name Type Description
other GeoExtent

set(west,south,east,north) → number)

用给定值初始化
Name Type Description
west number
south number
east number
north number

toRect() → Rect

转换为Rect对象

staticFromRect(rect) → GeoExtent

从矩形对象创建

staticFromRectValues(x,y,width,height) → GeoExtent

从矩形数值创建
Name Type Description
x number
y number
width number
height number

staticToRect(west,south,east,north) → Rect

转换为矩形对象
Name Type Description
west number
south number
east number
north number