Methods
Static alignedAxisOptionsToCar3
- alignedAxisOptionsToCar3(val): Cartesian3
Returns Cartesian3
Static bd09ToGCJ02
- bd09ToGCJ02(gcs): Geographic
@author: Xiaohu.Shen
Static car3ArrToCartesian3ListValue
- car3ArrToCartesian3ListValue(arr): number[]
Returns number[]
@author: Xiaohu.Shen
Static car3ArrToCartographicDegreesListValue
- car3ArrToCartographicDegreesListValue(arr): number[]
Returns number[]
@author: Xiaohu.Shen
Static car3ArrToCartographicRectangleDegreesValue
- car3ArrToCartographicRectangleDegreesValue(wsen): CartographicRectangleDegreesValue
Parameters
- wsen: [Cartesian3, Cartesian3]
@author: Xiaohu.Shen
Static car3ArrToGeographicArr
- car3ArrToGeographicArr(arr, ellipsoid?): Geographic[]
Parameters
- arr: Cartesian3[]
Optional ellipsoid: Ellipsoid
@author: Xiaohu.Shen
Static car3ArrToPoint3DegArr
- car3ArrToPoint3DegArr(arr, ellipsoid?): Point3Deg[]
Parameters
- arr: Cartesian3[]
Optional ellipsoid: Ellipsoid
Static car3ArrToPointArr
- car3ArrToPointArr(arr, ellipsoid?): Point[]
Parameters
- arr: Cartesian3[]
Optional ellipsoid: Ellipsoid
@author: Xiaohu.Shen
Static car3ArrToProjectionPntArr
- car3ArrToProjectionPntArr(arr, projection?): ProjectionPoint[]
Parameters
- arr: Cartesian3[]
Optional projection: WebMercatorProjection | GeographicProjection
Static car3ToCartesian3Value
- car3ToCartesian3Value(cartesian): Cartesian3Value
@author: Xiaohu.Shen
Static car3ToGeographic
- car3ToGeographic(cartesian3, ellipsoid?): Geographic
Parameters
- cartesian3: Cartesian3
Optional ellipsoid: Ellipsoid
@author: Xiaohu.Shen
Static car3ToGeographicInCHN
- car3ToGeographicInCHN(cartesian3, figure, isString, ellipsoid?): string
Parameters
- cartesian3: Cartesian3
- figure: number
- isString: true
Optional ellipsoid: Ellipsoid
Returns string
- car3ToGeographicInCHN(cartesian3, figure, isString, ellipsoid?): {
纬度: string;
经度: string;
高度: string;
} Parameters
- cartesian3: Cartesian3
- figure: number
- isString: false
Optional ellipsoid: Ellipsoid
Returns {
纬度: string;
经度: string;
高度: string;
}
纬度: string
经度: string
高度: string
Static car3ToPoint
- car3ToPoint(cartesian3, ellipsoid?): Point
Parameters
- cartesian3: Cartesian3
Optional ellipsoid: Ellipsoid
@author: Xiaohu.Shen
Static car3ToPoint3Deg
- car3ToPoint3Deg(cartesian3, ellipsoid?): Point3Deg
Parameters
- cartesian3: Cartesian3
Optional ellipsoid: Ellipsoid
@author: Xiaohu.Shen
Static car3ToProjectionPnt
- car3ToProjectionPnt(cartesian3, projection?): ProjectionPoint
Parameters
- cartesian3: Cartesian3
Optional projection: WebMercatorProjection | GeographicProjection
@author: Xiaohu.Shen
Static cartesian3ListValueToCar3Arr
- cartesian3ListValueToCar3Arr(cartesian): Cartesian3[]
Returns Cartesian3[]
Static cartesianToCanvasCoordinates
- cartesianToCanvasCoordinates(scene, position): Cartesian2
Parameters
- scene: Scene
- position: Cartesian3
Returns Cartesian2
Static gcj02ToBD09
- gcj02ToBD09(gcs): Geographic
Static gcj02ToWGS84
- gcj02ToWGS84(gcs): Geographic
@author: Xiaohu.Shen
Static gcs2ProjPnt
- gcs2ProjPnt(gcs, projection?): ProjectionPoint
Parameters
- gcs: Geographic
Optional projection: WebMercatorProjection | GeographicProjection
@author: Xiaohu.Shen
Static gcsToCartesian3
- gcsToCartesian3(gcs, ellipsoid?): Cartesian3
Returns Cartesian3
@author: Xiaohu.Shen
Static gcsToCartographicDegreesValue
- gcsToCartographicDegreesValue(gcs): Point3Deg
Static gcsToPoint3Deg
- gcsToPoint3Deg(gcs): Point3Deg
Static geocentricToGeodetic
- geocentricToGeodetic(X, Y, Z, a?, f?): {
height: number;
latitude: number;
longitude: number;
} Parameters
- X: number
- Y: number
- Z: number
Optional a: numberOptional f: number
Returns {
height: number;
latitude: number;
longitude: number;
}
height: number
latitude: number
longitude: number
Static getKeyByEnumValue
- getKeyByEnumValue<T>(enumType, value): string
Parameters
- enumType: T
- value: T[keyof T]
Returns string
@author: Xiaohu.Shen
Static getPickedObject
- getPickedObject(viewer, screenPosition): {
id?: Entity;
} Parameters
- viewer: Viewer
- screenPosition: Cartesian2
Returns {
id?: Entity;
}
@author: Xiaohu.Shen
Static getSceneCartesian3
- getSceneCartesian3(scene, screenPosition): Cartesian3
Parameters
- scene: Scene
- screenPosition: Cartesian2
Returns Cartesian3
@author: Xiaohu.Shen
Static getSurfaceCartesian3
- getSurfaceCartesian3(viewer, screenPosition): Cartesian3
Parameters
- viewer: Viewer
- screenPosition: Cartesian2
Returns Cartesian3
@author: Xiaohu.Shen
Static getTerrainHeight
- getTerrainHeight(globe, point): number
Returns number
@author: Xiaohu.Shen
Static getViewCartesian3
- getViewCartesian3(viewer, screenPosition): Cartesian3
Parameters
- viewer: Viewer
- screenPosition: Cartesian2
Returns Cartesian3
@author: Xiaohu.Shen
Static isPointOnBackside
- isPointOnBackside(scene, position): boolean
Parameters
- scene: Scene
- position: Cartesian3
Returns boolean
@author: Xiaohu.Shen
Static point3DegArrToCar3Arr
- point3DegArrToCar3Arr(points): Cartesian3[]
Returns Cartesian3[]
Static point3DegArrToProjPointArr
- point3DegArrToProjPointArr(points): ProjectionPoint[]
Static point3DegToProjPnt
- point3DegToProjPnt(point, projection?): ProjectionPoint
Parameters
- point: Point3Deg
Optional projection: WebMercatorProjection | GeographicProjection
Static pointToCar3
- pointToCar3(point): Cartesian3
Returns Cartesian3
Static pointToDMS
- pointToDMS(point, CHN?): {
strLat: string;
strLon: string;
} Returns {
strLat: string;
strLon: string;
}
@author: Xiaohu.Shen
strLat: string
strLon: string
Static pointToGCS
- pointToGCS(point): Geographic
Static pointToStr
- pointToStr(point, CHN?): {
strLat: string;
strLon: string;
} Returns {
strLat: string;
strLon: string;
}
@author: Xiaohu.Shen
strLat: string
strLon: string
Static positionListOptionsToCar3Arr
- positionListOptionsToCar3Arr(position): Cartesian3[]
Returns Cartesian3[]
Static positionOptionsToCar3
- positionOptionsToCar3(position): Cartesian3
Returns Cartesian3
Static projPnt2Cartesian3
- projPnt2Cartesian3(projPnt, projection?): Cartesian3
Parameters
- projPnt: ProjectionPoint
Optional projection: WebMercatorProjection | GeographicProjection
Returns Cartesian3
@author: Xiaohu.Shen
Static projPnt2Geographic
- projPnt2Geographic(projPnt, projection?): Geographic
Parameters
- projPnt: ProjectionPoint
Optional projection: WebMercatorProjection | GeographicProjection
@author: Xiaohu.Shen
Static projPnt2Point
- projPnt2Point(projPnt, projection?): Point2Deg
Parameters
- projPnt: ProjectionPoint
Optional projection: WebMercatorProjection | GeographicProjection
@author: Xiaohu.Shen
Static projPntArr2Cartesian3Arr
- projPntArr2Cartesian3Arr(projPnt, projection?): Cartesian3[]
Parameters
- projPnt: ProjectionPoint[]
Optional projection: WebMercatorProjection | GeographicProjection
Returns Cartesian3[]
@author: Xiaohu.Shen
Static projPntArr2PointArr
- projPntArr2PointArr(projPntArr, projection?): Point2Deg[]
Parameters
- projPntArr: ProjectionPoint[]
Optional projection: WebMercatorProjection | GeographicProjection
@author: Xiaohu.Shen
Static projectionsToCartesian3Arr
- projectionsToCartesian3Arr(projections, projection?, result?): Cartesian3[]
Parameters
- projections: number[]
Optional projection: WebMercatorProjection | GeographicProjectionOptional result: Cartesian3[]
Returns Cartesian3[]
@author: Xiaohu.Shen
Static quaternionToUnitQuaternionValue
- quaternionToUnitQuaternionValue(val): UnitQuaternionValue
Static rectangle2Cartesian3Arr
- rectangle2Cartesian3Arr(rectangle): Cartesian3[]
Returns Cartesian3[]
Static rectangle2WsenDegrees
Static rectangleCoordinatesOptionsToCar3Arr
- rectangleCoordinatesOptionsToCar3Arr(coordinates): Cartesian3[]
Returns Cartesian3[]
Static rectangleCoordinatesOptionsToRectangle
- rectangleCoordinatesOptionsToRectangle(coordinates): Rectangle
Returns Rectangle
Static relative2AbsoluteCar3
- relative2AbsoluteCar3(relCar3, globe): Cartesian3
Parameters
- relCar3: Cartesian3
- globe: Globe
Returns Cartesian3
@author: Xiaohu.Shen
Static secondsToHMS
- secondsToHMS(value, withDay?): {
H: string | number;
M: string | number;
S: string | number;
} Parameters
- value: number
Optional withDay: boolean
Returns {
H: string | number;
M: string | number;
S: string | number;
}
H: string | number
M: string | number
S: string | number
Static secondsToHMSInCHN
- secondsToHMSInCHN(value, withDay?): string
Parameters
- value: number
Optional withDay: boolean
Returns string
Static secondsToHMSInStr
- secondsToHMSInStr(value, withDay?): string
Parameters
- value: number
Optional withDay: boolean
Returns string
Static toDMS
- toDMS(degree): {
degree: number;
minute: number;
second: number;
} Returns {
degree: number;
minute: number;
second: number;
}
@author: Xiaohu.Shen
degree: number
minute: number
second: number
Static toDegree
- toDegree(degree, minute, second, precision?): number
Parameters
- degree: number
- minute: number
- second: number
Optional precision: number
Returns number
@author: Xiaohu.Shen
Static unitQuaternionValueToQuaternion
- unitQuaternionValueToQuaternion(val): Quaternion
Returns Quaternion
Static value2Color
- value2Color(data): Color
Returns Color
Static value2NearFarScalar
- value2NearFarScalar(data): NearFarScalar
Returns NearFarScalar
Static wgs84ToGCJ02
- wgs84ToGCJ02(gcs): Geographic
@author: Xiaohu.Shen
Static wsenDegrees2Cartesian3Arr
- wsenDegrees2Cartesian3Arr(wsenDegrees): Cartesian3[]
Returns Cartesian3[]
@descripttion: 转化工具 @author: Xiaohu.Shen