Transform — Aspose.3D FOSS for .NET
Methods
Methods Transform คลาสกำหนดการแปลงเชิงท้องถิ่นของ a Node ในกราฟฉาก มันเก็บการแปลงตำแหน่ง, การหมุน (เป็น a Quaternion), และสเกลเป็นคุณสมบัติแยกกัน เมทริกซ์การแปลงที่ประกอบกันใช้ภายในเพื่อคำนวณตำแหน่งในอวกาศโลกของโหนดผ่าน 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 | การรับ/ตั้งค่า | ออฟเซ็ตตำแหน่งท้องถิ่น |
Rotation | Quaternion | get/set | การหมุนในท้องถิ่นเป็นควอเทอร์เนียนหน่วย |
Scale | FVector3 | get/set | ปัจจัยสเกลในท้องถิ่น |
Matrix | Matrix4 | get/set | เมทริกซ์การแปลงท้องถิ่นที่ประกอบ |