Class: GeoPoint

GeoPoint

new GeoPoint()

点几何对象类。
Source:

Methods

(static) createObj(x, y) → {Promise.<GeoPoint>}

构造一个新的 GeoPoint 对象,x,y参数为可选参数,无参数时此几何点对象的坐标 X,Y 分别为-1.7976931348623157e+308。
Parameters:
Name Type Description
x number 指定点几何对象的 X 坐标值。
y number 指定点几何对象的 y 坐标值。
Source:
Returns:
Type
Promise.<GeoPoint>

(static) getX() → {Promise.<Promise.number>}

返回此点几何对象的 X 坐标。使用无参构造函数构造的点对象的 X 坐标值为默认值。
Source:
Returns:
Type
Promise.<Promise.number>

(static) getY() → {Promise.<Promise.number>}

返回此点几何对象的 Y 坐标。使用无参构造函数构造的点对象的 Y 坐标值为默认值。
Source:
Returns:
Type
Promise.<Promise.number>