Matrix

矩阵

new YS.Matrix(array)

4×4的矩阵,实质是一维数组,总共4行4列16个元素,顺序是: [column0Row0, column1Row0, column2Row0, column3Row0, column0Row1, column1Row1, column2Row1, column3Row1, column0Row2, column1Row2, column2Row2, column3Row2, column0Row3, column1Row3, column2Row3, column3Row3]
Name Type Description
array Array.<Number> 传入矩阵数组

Members

staticconstantYS.Matrix.IDENTITY : Matrix

单元矩阵常量

staticconstantYS.Matrix.ZERO : Matrix

单元矩阵常量

Methods

staticYS.Matrix.fromTranslation(translation)Matrix

获取平移矩阵
Name Type Description
translation XYZ 平移距离,此xyz是距离,非经纬度
Returns:

staticYS.Matrix.toCesium(array)Cesium.Matrix4

生成Cesium.Matrix4
Name Type Description
array Matrix 传入矩阵数组
Returns: