目录

PgdTransform

Class/Struct Info

public struct PgdTransform : IComponent

预设变换组件,继承了IComponent。

Property Summary

Name

Type

Description

mtr

Matrix4x4

4x4矩阵表达的变换。

mtr11~14

float

变换矩阵第一行元素。

mtr21~24

float

变换矩阵第二行元素。

mtr31~34

float

变换矩阵第三行元素。

mtr41~44

float

变换矩阵第四行元素。

Sample Code
// 创建PgdTransform组件
var transform1 = new PgdTransform{mtr = new Matrix4x4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)};
// 没有输入则为默认值,即全为0
var transform2 = new PgdTransform();