OrbPro2 a Cesium distribution

RectangularSensorOutlineGeometry

new Cesium.RectangularSensorOutlineGeometry(options)

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:
Name Type Default Description
xHalfAngle number The half-angle in the X direction in radians.
yHalfAngle number The half-angle in the Y direction in radians.
radius number The radius (range) of the sensor.
edgeSubdivisions number 8 optional Number of subdivisions along each edge of the rectangle.
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

static Cesium.RectangularSensorOutlineGeometry.packedLength : number

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.

static Cesium.RectangularSensorOutlineGeometry.pack(value, array, startingIndex)Array.<number>

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.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.