Example


3×4矩阵的定义

The Transformation commands use a 3 x 4 transformation matrix which is defined as follows:

 3 x 4 Transform Matrix

The numbers 1- 12 represent the 12 elements of the matrix(12). The various forms of the MATRIX command are shown next.

Translate

matx = matrix / transl, 1,2,3
1.0000,.0000,.0000,1.0000
.0000,1.0000,.0000,2.0000
.0000,.0000,1.0000,3.0000

Uniform Scale

matx = matrix / scale, 4
4.0000,.0000,.0000,.0000
.0000,4.0000,.0000,.0000
.0000,.0000,4.0000,.0000

Non-Uniform Scale

matx = matrix / scale, 5,6,7
5.0000,.0000,.0000,.0000
.0000,6.0000,.0000,.0000
.0000,.0000,7.0000,.0000

XY Rotation

matx = matrix / xyrot, 45
.7071,-.7071,.0000,.0000
.7071,.7071,.0000,.0000
.0000,.0000,1.0000,.0000

YZ Rotation

matx = matrix / yzrot, 45
1.0000,.0000,.0000,.0000
.0000,.7071,-.7071,.0000
.0000,.7071,.7071,.0000

ZX Rotation

matx = matrix / zxrot, 45
.7071,.0000,.7071,.0000
.0000,1.0000,.0000,.0000
-.7071,.0000,.7071,.0000


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.