Transform — Aspose.3D FOSS for .NET
Methods
Methods Transform lớp định nghĩa phép biến đổi cục bộ của một Node trong đồ thị cảnh. Nó lưu trữ phép dịch, phép quay (dưới dạng một Quaternion), và tỉ lệ như các thuộc tính riêng biệt. Ma trận biến đổi đã hợp thành được sử dụng nội bộ để tính vị trí không gian toàn cục của nút thông qua GlobalTransform.
using Aspose.ThreeD;
var scene = new Scene();
var node = scene.RootNode.CreateChildNode("Moved");
node.Transform.Translation = new FVector3(5, 0, 0);
node.Transform.Scale = new FVector3(2, 2, 2);Methods
| Methods | Methods | Methods | Methods |
|---|---|---|---|
Translation | FVector3 | lấy/đặt | Độ dịch vị trí cục bộ |
Rotation | Quaternion | get/set | Xoay cục bộ dưới dạng quaternion đơn vị |
Scale | FVector3 | get/set | Hệ số tỉ lệ cục bộ |
Matrix | Matrix4 | get/set | Ma trận biến đổi cục bộ đã ghép |