Transform — Aspose.3D FOSS for .NET
Overview
The Transform class defines the local transformation of a Node in the scene graph. It stores translation, rotation (as a Quaternion), and scale as separate properties. The composed transform matrix is used internally to compute the node’s world-space position via 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);Properties
| Name | Type | Access | Description |
|---|---|---|---|
Translation | FVector3 | get/set | Local position offset |
Rotation | Quaternion | get/set | Local rotation as a unit quaternion |
Scale | FVector3 | get/set | Local scale factor |
Matrix | Matrix4 | get/set | Composed local transformation matrix |