OrbPro2 a Cesium distribution

ConicSensorOutlineGeometry

new Cesium.ConicSensorOutlineGeometry(options)

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:
Name Type Default Description
outerHalfAngle number The outer half-angle of the cone in radians.
radius number The radius (range) of the sensor.
innerHalfAngle number 0.0 optional The inner half-angle in radians (for hollow cones).
minimumClockAngle number 0.0 optional The minimum clock angle in radians.
maximumClockAngle number 2*PI optional The maximum clock angle in radians.
slices number 36 optional The number of edges around the perimeter.
numberOfRadialLines number 8 optional Number of lines from apex to rim.
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

static Cesium.ConicSensorOutlineGeometry.packedLength : number

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.

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

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