Transform — Aspose.3D FOSS for .NET
Example
Example Transform class は a のローカル変換を定義します Node シーン グラフ内です。平行移動、回転(として 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);Example
| Example | Example | Example | Example |
|---|---|---|---|
Translation | FVector3 | 取得/設定 | ローカル位置オフセット |
Rotation | Quaternion | 取得/設定 | ローカル回転を単位クォータニオンとして |
Scale | FVector3 | 取得/設定 | ローカルスケールファクター |
Matrix | Matrix4 | 取得/設定 | 合成されたローカル変換行列 |