A set of curvilinear 3-dimensional coordinates.
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
clock |
number |
0.0
|
可选 The angular coordinate lying in the xy-plane measured from the positive x-axis and toward the positive y-axis. |
cone |
number |
0.0
|
可选 The angular coordinate measured from the positive z-axis and toward the negative z-axis. |
magnitude |
number |
1.0
|
可选 The linear coordinate measured from the origin. |
成员(属性)
The clock component.
-
默认值:
0.0
The cone component.
-
默认值:
0.0
The magnitude component.
-
默认值:
1.0
方法
static Cesium.Spherical.clone(spherical, result) → Spherical
Creates a duplicate of a Spherical.
参数名称 | 类型 | 描述信息 |
---|---|---|
spherical |
Spherical | The spherical to clone. |
result |
Spherical | 可选 The object to store the result into, if undefined a new instance will be created. |
返回值:
The modified result parameter or a new instance if result was undefined. (Returns undefined if spherical is undefined)
Returns true if the first spherical is equal to the second spherical, false otherwise.
参数名称 | 类型 | 描述信息 |
---|---|---|
left |
Spherical | The first Spherical to be compared. |
right |
Spherical | The second Spherical to be compared. |
返回值:
true if the first spherical is equal to the second spherical, false otherwise.
Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
left |
Spherical | The first Spherical to be compared. | |
right |
Spherical | The second Spherical to be compared. | |
epsilon |
number |
0.0
|
可选 The epsilon to compare against. |
返回值:
true if the first spherical is within the provided epsilon of the second spherical, false otherwise.
static Cesium.Spherical.fromCartesian3(cartesian3, result) → Spherical
Converts the provided Cartesian3 into Spherical coordinates.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesian3 |
Cartesian3 | The Cartesian3 to be converted to Spherical. |
result |
Spherical | 可选 The object in which the result will be stored, if undefined a new instance will be created. |
返回值:
The modified result parameter, or a new instance if one was not provided.
static Cesium.Spherical.normalize(spherical, result) → Spherical
Computes the normalized version of the provided spherical.
参数名称 | 类型 | 描述信息 |
---|---|---|
spherical |
Spherical | The spherical to be normalized. |
result |
Spherical | 可选 The object to store the result into, if undefined a new instance will be created. |
返回值:
The modified result parameter or a new instance if result was undefined.
clone(result) → Spherical
Creates a duplicate of this Spherical.
参数名称 | 类型 | 描述信息 |
---|---|---|
result |
Spherical | 可选 The object to store the result into, if undefined a new instance will be created. |
返回值:
The modified result parameter or a new instance if result was undefined.
Returns true if this spherical is equal to the provided spherical, false otherwise.
参数名称 | 类型 | 描述信息 |
---|---|---|
other |
Spherical | The Spherical to be compared. |
返回值:
true if this spherical is equal to the provided spherical, false otherwise.
Returns true if this spherical is within the provided epsilon of the provided spherical, false otherwise.
参数名称 | 类型 | 描述信息 |
---|---|---|
other |
Spherical | The Spherical to be compared. |
epsilon |
number | The epsilon to compare against. |
返回值:
true if this spherical is within the provided epsilon of the provided spherical, false otherwise.
Returns a string representing this instance in the format (clock, cone, magnitude).
返回值:
A string representing this instance.