Point3d 点坐标类
判定
isPoint3d()
typescript
const isPoint3d: (val: any) => val is Point3d属性
lng: number 经度
lat: number 维度
height: number 高度
point: Cartesian3 点 Cartesian3 坐标
方法
static fromLngLat 从经纬度创建 Point3d 对象
typescript
/**
*@description 从经纬度创建Point3d对象
*@param lng 经度 degrees
*@param lat 纬度 degrees
*@param height 高程 degrees
*@return
*/
Point3d.fromLngLat(lng: number, lat: number, height?: number): Point3dstatic fromCartesian3 从笛卡尔 3 坐标创建 Point3d 对象
typescript
Point3d.fromCartesian3(cartesian: Cartesian3): Point3dgetLngLat 导出经纬度数组
typescript
getLngLat(): [number, number, number]equals 比较连个坐标是否相等
typescript
equals(other: Point3d): booleansubtract 计算两点之差
typescript
subtract(other: Point3d): Cartesian3magnitude 计算两点之间的距离
typescript
magnitude(other: Point3d): number //单位米angleFrom 计算两点之间的夹角
typescript
angleFrom(other: Point3d): numberclone 深度克隆点位
typescript
clone(): Point3ddestroy 销毁
typescript
destroy():boolean