new Cesium.DebugModelMatrixPrimitive(options)

绘制向世界转换的矩阵定义的参考框架轴 坐标, i.e . 地球的 WGS84 坐标. 最突出的例子是 a原始人 NT 0 模范Matrix NT 1 .

X轴为红色;Y为绿色;Z为蓝色.

仅用于调试;不优化用于生产.

Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
length number 10000000.0 optional The length of the axes in meters.
width number 2.0 optional 轴的宽度以像素表示.
modelMatrix Matrix4 Matrix4.IDENTITY optional The 4x4 matrix that defines the reference frame, i.e., origin plus axes, to visualize.
show boolean true optional Determines if this primitive will be shown.
id object optional A user-defined object to return when the instance is picked with Scene#pick
Example:
primitives.add(new Cesium.DebugModelMatrixPrimitive({
  modelMatrix : primitive.modelMatrix,  // primitive to debug
  length : 100000.0,
  width : 10.0
}));

Members

id : *

选择原始时返回用户定义的值 .
Default Value: undefined
See:

length : number

斧头的长度以米计.
Default Value: 10000000.0

modelMatrix : Matrix4

定义参考框架的4x4矩阵 i.e .,来源加轴,可视化.
Default Value: Matrix4.IDENTITY

show : boolean

确定是否将显示此原始文件 .
Default Value: true

width : number

轴的宽度以像素表示.
Default Value: 2.0

Methods

destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic 释放 WebGL 资源,而不是依赖垃圾收集器来摧毁此对象.

Once an object is destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception. Therefore, assign the return value (undefined) to the object as done in the example.

Throws:
  • DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
p = p && p.destroy();
See:

isDestroyed()boolean

如果此对象被销毁, 返回真实; 否则, 错误 .

If this object was destroyed, it should not be used; calling any function other than isDestroyed will result in a DeveloperError exception.

Returns:
true if this object was destroyed; otherwise, false.
See:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.