A description of the outline of a conic sensor volume.
The sensor is centered at the origin with its boresight along the +Z axis.
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Object with the following properties:
|
Example:
const sensorOutline = new Cesium.ConicSensorOutlineGeometry({
outerHalfAngle: Cesium.Math.toRadians(30),
radius: 10000,
slices: 36,
numberOfRadialLines: 8
});
const geometry = Cesium.ConicSensorOutlineGeometry.createGeometry(sensorOutline);
See:
Members
The number of elements used to pack the object into an array.
Methods
static Cesium.ConicSensorOutlineGeometry.createGeometry(conicSensorOutlineGeometry) → Geometry|undefined
Computes the geometric representation of a conic sensor outline.
| Name | Type | Description |
|---|---|---|
conicSensorOutlineGeometry |
ConicSensorOutlineGeometry | A description of the sensor outline. |
Returns:
The computed vertices and indices.
Stores the provided instance into the provided array.
| Name | Type | Default | Description |
|---|---|---|---|
value |
ConicSensorOutlineGeometry | The value to pack. | |
array |
Array.<number> | The array to pack into. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing. |
Returns:
The array that was packed into
static Cesium.ConicSensorOutlineGeometry.unpack(array, startingIndex, result) → ConicSensorOutlineGeometry
Retrieves an instance from a packed array.
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | The packed array. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
ConicSensorOutlineGeometry | optional The object into which to store the result. |
Returns:
The modified result parameter or a new instance.