A description of the outline of a rectangular (pyramid) 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.RectangularSensorOutlineGeometry({
xHalfAngle: Cesium.Math.toRadians(15),
yHalfAngle: Cesium.Math.toRadians(10),
radius: 10000
});
const geometry = Cesium.RectangularSensorOutlineGeometry.createGeometry(sensorOutline);
See:
Members
The number of elements used to pack the object into an array.
Methods
static Cesium.RectangularSensorOutlineGeometry.createGeometry(rectangularSensorOutlineGeometry) → Geometry|undefined
Computes the geometric representation of a rectangular sensor outline.
| Name | Type | Description |
|---|---|---|
rectangularSensorOutlineGeometry |
RectangularSensorOutlineGeometry | 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 |
RectangularSensorOutlineGeometry | 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.RectangularSensorOutlineGeometry.unpack(array, startingIndex, result) → RectangularSensorOutlineGeometry
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 |
RectangularSensorOutlineGeometry | optional The object into which to store the result. |
Returns:
The modified result parameter or a new instance.