RectangularPyramidSensorVolume

RectangularPyramidSensorVolume

Members

:BufferUsage

DOC_TBA
Default Value:

:Color

The color of the polyline where the sensor outline intersects the central body. The default is Color.WHITE.
Default Value:
See:

:Material

The surface appearance of the sensor. This can be one of several built-in Material objects or a custom material, scripted with Fabric.

The default material is Material.ColorType.

Example
// 1. Change the color of the default material to yellow
sensor.material.uniforms.color = new Color(1.0, 1.0, 0.0, 1.0);

// 2. Change material to horizontal stripes
sensor.material = Material.fromType(scene.getContext(), Material.StripeType);
Default Value:
  • Material.fromType(undefined, Material.ColorType)
See:

:Matrix4

The 4x4 transformation matrix that transforms this sensor from model to world coordinates. In it's model coordinates, the sensor's principal direction is along the positive z-axis. Half angles measured from the principal direction and in the direction of the x-axis and y-axis define the extent of the rectangular cross section. This matrix is available to GLSL vertex and fragment shaders via czm_model and derived uniforms.


Model coordinate system for a sensor
Example
// The sensor's vertex is located on the surface at -75.59777 degrees longitude and 40.03883 degrees latitude.
// The sensor's opens upward, along the surface normal.
var center = ellipsoid.cartographicToCartesian(Cartographic.fromDegrees(-75.59777, 40.03883));
sensor.modelMatrix = Transforms.eastNorthUpToFixedFrame(center);
Default Value:
See:

:Number

DOC_TBA
Default Value:
  • Number.POSITIVE_INFINITY

:Boolean

true if this sensor will be shown; otherwise, false
Default Value:
  • true

:Boolean

When true, a polyline is shown where the sensor outline intersections the central body. The default is true.
Default Value:
  • true
See:

:Boolean

Determines if a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side, or if the part of the sensor intersecting the ellipsoid stops at the ellipsoid.

The default is false, meaning the sensor will not go through the ellipsoid.

Default Value:
  • false

:Number

DOC_TBA
Default Value:
See:

:Number

DOC_TBA
Default Value:
See:

Methods

DOC_TBA

DOC_TBA

DOC_TBA

Throws:
  • DeveloperError : this.xHalfAngle and this.yHalfAngle must each be less than 90 degrees.
  • DeveloperError : this.radius must be greater than or equal to zero.