Transform — Aspose.3D FOSS for .NET
Methods
Methods Transform klase definē lokālo transformāciju Node scēnas grafā. Tā saglabā translāciju, rotāciju (kā Quaternion), un mērogu kā atsevišķas īpašības. Komponētā transformācijas matrica tiek izmantota iekšēji, lai aprēķinātu mezgla pasaules telpas pozīciju, izmantojot 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 | iegūt/iestatīt | Lokālais pozīcijas nobīde |
Rotation | Quaternion | iegūt/iestatīt | Vietējā rotācija kā vienības kvaternions |
Scale | FVector3 | iegūt/iestatīt | Vietējais mēroga koeficients |
Matrix | Matrix4 | iegūt/iestatīt | Sastādīta vietējā transformācijas matrica |