Appearance
KBE3D / KBCore / Cesium / Math / convertLongitudeRange
函数: convertLongitudeRange()
convertLongitudeRange(
angle:number):number
Converts a longitude value, in radians, to the range [<code>-Math.PI</code>, <code>Math.PI</code>).
参数
angle
number
The longitude value, in radians, to convert to the range [<code>-Math.PI</code>, <code>Math.PI</code>).
返回
number
The equivalent longitude value in the range [-Math.PI, Math.PI).
示例
ts
// Convert 270 degrees to -90 degrees longitude
const longitude = Cesium.Math.convertLongitudeRange(Cesium.Math.toRadians(270.0));