Spherical

new Cesium.Spherical(clock, cone, magnitude)

一组曲线 3 维坐标。
Name Type Default Description
clock number 0.0 optional 位于 xy 平面上从正 x 轴到正 y 轴测量的角度坐标。
cone number 0.0 optional 从正 z 轴到负 z 轴测量的角度坐标。
magnitude number 1.0 optional 从原点开始测量的线性坐标。

Members

时钟组件。
Default Value: 0.0
锥体组件。
Default Value: 0.0
幅度分量。
Default Value: 1.0

Methods

static Cesium.Spherical.clone(spherical, result)Spherical

创建 Spherical 的副本。
Name Type Description
spherical Spherical 要克隆的球形。
result Spherical optional 存储结果的对象,如果未定义,将创建一个新实例。
Returns:
修改后的结果参数或者如果 result 未定义,则为新实例。(如果 spherical 未定义,则返回 undefined)

static Cesium.Spherical.equals(left, right)boolean

如果第一个球面等于第二个球面,则返回 true,否则返回 false。
Name Type Description
left Spherical optional 第一个要比较的球面。
right Spherical optional 要比较的第二个球面。
Returns:
true,如果第一个球面等于第二个球面,否则为 false。

static Cesium.Spherical.equalsEpsilon(left, right, epsilon)boolean

如果第一个球面位于第二个球面提供的 epsilon 内,则返回 true,否则返回 false。
Name Type Default Description
left Spherical 第一个要比较的球面。
right Spherical 要比较的第二个球面。
epsilon number 0.0 optional 要比较的 epsilon。
Returns:
true,如果第一个球面在第二个球面提供的 epsilon 内,否则为 false。

static Cesium.Spherical.fromCartesian3(cartesian3, result)Spherical

将提供的 Cartesian3 转换为 Spherical 坐标。
Name Type Description
cartesian3 Cartesian3 笛卡尔3 转换为球面。
result Spherical optional 将存储结果的对象,如果未定义,将创建一个新实例。
Returns:
修改后的结果参数,或者一个新实例(如果未提供)。

static Cesium.Spherical.normalize(spherical, result)Spherical

计算提供的球形的归一化版本。
Name Type Description
spherical Spherical 要归一化的球面。
result Spherical optional 存储结果的对象,如果未定义,将创建一个新实例。
Returns:
修改后的结果参数,如果 result 未定义,则为新实例。
创建此 Spherical 的副本。
Name Type Description
result Spherical optional 存储结果的对象,如果未定义,将创建一个新实例。
Returns:
修改后的结果参数,如果 result 未定义,则为新实例。

equals(other)boolean

如果此球面等于提供的球面,则返回 true,否则返回 false。
Name Type Description
other Spherical optional The Spherical to be compared.
Returns:
true if this spherical is equal to the provided spherical, false otherwise.

equalsEpsilon(other, epsilon)

如果此球面位于提供的球面的 epsilon 内,则返回 true,否则返回 false。
Name Type Description
other Spherical 要比较的球形。
epsilon number 要比较的 epsilon。 如果此球面位于提供的球面的 epsilon 内,则@returns {boolean} true, 否则 false 。

toString()string

返回一个字符串,以 (clock, cone, magnitude) 格式表示此实例。
Returns:
表示此实例的字符串。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.