A direction defined by clock and cone angles, used for custom sensor volumes.
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
Object with the following properties:
|
Members
The clock angle in radians measured from the positive x-axis toward the positive y-axis.
-
Default Value:
0.0
The cone angle in radians measured from the positive z-axis toward the negative z-axis.
-
Default Value:
0.0
Methods
static Cesium.Direction.clone(direction, result) → Direction
Duplicates a Direction instance.
| Name | Type | Description |
|---|---|---|
direction |
Direction | The Direction to duplicate. |
result |
Direction | optional The object onto which to store the result. |
Returns:
The modified result parameter or a new Direction instance if one was not provided.
Compares the provided Directions componentwise and returns
true if they are equal, false otherwise.
| Name | Type | Description |
|---|---|---|
left |
Direction | optional The first Direction. |
right |
Direction | optional The second Direction. |
Returns:
true if left and right are equal, false otherwise.
static Cesium.Direction.fromCartesian(cartesian, result) → Direction
Creates a Direction from a Cartesian3 unit vector.
| Name | Type | Description |
|---|---|---|
cartesian |
Cartesian3 | The Cartesian3 unit vector. |
result |
Direction | optional The object onto which to store the result. |
Returns:
The Direction representation of the Cartesian3.
static Cesium.Direction.fromClockCone(clock, cone, result) → Direction
Creates a Direction from clock and cone angles.
| Name | Type | Description |
|---|---|---|
clock |
number | The clock angle in radians. |
cone |
number | The cone angle in radians. |
result |
Direction | optional The object onto which to store the result. |
Returns:
The modified result parameter or a new Direction instance if one was not provided.
static Cesium.Direction.toCartesian(direction, result) → Cartesian3
Converts this direction to a unit Cartesian3 vector.
| Name | Type | Description |
|---|---|---|
direction |
Direction | The direction to convert. |
result |
Cartesian3 | optional The object onto which to store the result. |
Returns:
The Cartesian3 representation of this direction.