Appearance
KBE3D / KBCore / Cesium / Cartographic
类: Cartographic
A position defined by longitude, latitude, and height.
参数
The longitude, in radians.
参数
The latitude, in radians.
参数
The height, in meters, above the ellipsoid.
属性
ZERO
readonlystaticZERO:Cartographic
An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
longitude
longitude:
number
The longitude, in radians.
latitude
latitude:
number
The latitude, in radians.
height
height:
number
The height, in meters, above the ellipsoid.
方法
fromRadians()
staticfromRadians(longitude:number,latitude:number,height?:number,result?:Cartographic):Cartographic
Creates a new Cartographic instance from longitude and latitude specified in radians.
参数
longitude
number
The longitude, in radians.
latitude
number
The latitude, in radians.
height?
number
The height, in meters, above the ellipsoid.
result?
Cartographic
The object onto which to store the result.
返回
Cartographic
The modified result parameter or a new Cartographic instance if one was not provided.
fromDegrees()
staticfromDegrees(longitude:number,latitude:number,height?:number,result?:Cartographic):Cartographic
Creates a new Cartographic instance from longitude and latitude specified in degrees. The values in the resulting object will be in radians.
参数
longitude
number
The longitude, in degrees.
latitude
number
The latitude, in degrees.
height?
number
The height, in meters, above the ellipsoid.
result?
Cartographic
The object onto which to store the result.
返回
Cartographic
The modified result parameter or a new Cartographic instance if one was not provided.
fromCartesian()
staticfromCartesian(cartesian:Cartesian3,ellipsoid?:Ellipsoid,result?:Cartographic):Cartographic
Creates a new Cartographic instance from a Cartesian position. The values in the resulting object will be in radians.
参数
cartesian
The Cartesian position to convert to cartographic representation.
ellipsoid?
The ellipsoid on which the position lies.
result?
Cartographic
The object onto which to store the result.
返回
Cartographic
The modified result parameter, new Cartographic instance if none was provided, or undefined if the cartesian is at the center of the ellipsoid.
toCartesian()
statictoCartesian(cartographic:Cartographic,ellipsoid?:Ellipsoid,result?:Cartesian3):Cartesian3
Creates a new Cartesian3 instance from a Cartographic input. The values in the inputted object should be in radians.
参数
cartographic
Cartographic
Input to be converted into a Cartesian3 output.
ellipsoid?
The ellipsoid on which the position lies.
result?
The object onto which to store the result.
返回
The position
clone()
staticclone(cartographic:Cartographic,result?:Cartographic):Cartographic
Duplicates a Cartographic instance.
参数
cartographic
Cartographic
The cartographic to duplicate.
result?
Cartographic
The object onto which to store the result.
返回
Cartographic
The modified result parameter or a new Cartographic instance if one was not provided. (Returns undefined if cartographic is undefined)
equals()
staticequals(left?:Cartographic,right?:Cartographic):boolean
Compares the provided cartographics componentwise and returns <code>true</code> if they are equal, <code>false</code> otherwise.
参数
left?
Cartographic
The first cartographic.
right?
Cartographic
The second cartographic.
返回
boolean
true if left and right are equal, false otherwise.
equalsEpsilon()
staticequalsEpsilon(left?:Cartographic,right?:Cartographic,epsilon?:number):boolean
Compares the provided cartographics componentwise and returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
参数
left?
Cartographic
The first cartographic.
right?
Cartographic
The second cartographic.
epsilon?
number
The epsilon to use for equality testing.
返回
boolean
true if left and right are within the provided epsilon, false otherwise.
clone()
clone(
result?:Cartographic):Cartographic
Duplicates this instance.
参数
result?
Cartographic
The object onto which to store the result.
返回
Cartographic
The modified result parameter or a new Cartographic instance if one was not provided.
equals()
equals(
right?:Cartographic):boolean
Compares the provided against this cartographic componentwise and returns <code>true</code> if they are equal, <code>false</code> otherwise.
参数
right?
Cartographic
The second cartographic.
返回
boolean
true if left and right are equal, false otherwise.
equalsEpsilon()
equalsEpsilon(
right?:Cartographic,epsilon?:number):boolean
Compares the provided against this cartographic componentwise and returns <code>true</code> if they are within the provided epsilon, <code>false</code> otherwise.
参数
right?
Cartographic
The second cartographic.
epsilon?
number
The epsilon to use for equality testing.
返回
boolean
true if left and right are within the provided epsilon, false otherwise.
toString()
toString():
string
Creates a string representing this cartographic in the format '(longitude, latitude, height)'.
返回
string
A string representing the provided cartographic in the format '(longitude, latitude, height)'.
构造函数
构造函数
new Cartographic(
longitude?:number,latitude?:number,height?:number):Cartographic
参数
longitude?
number
latitude?
number
height?
number
返回
Cartographic
