DebugModelMatrixPrimitive

Draws the axes of a reference frame defined by a matrix that transforms to world coordinates, i.e., Earth's WGS84 coordinates. The most prominent example is a primitives modelMatrix.

The X axis is red; Y is green; and Z is blue.

This is for debugging only; it is not optimized for production use.

primitives.add(new DebugModelMatrixPrimitive({
modelMatrix : primitive.modelMatrix, // primitive to debug
length : 100000.0,
width : 10.0
}));

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var id: Any

User-defined value returned when the primitive is picked.

Link copied to clipboard
var length: Int

The length of the axes in meters.

Link copied to clipboard

The 4x4 matrix that defines the reference frame, i.e., origin plus axes, to visualize.

Link copied to clipboard

Determines if this primitive will be shown.

Link copied to clipboard

The width of the axes in pixels.

Functions

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.