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

ExampleExampleExampleExample
TranslationFVector3取得/設定ローカル位置オフセット
RotationQuaternion取得/設定ローカル回転を単位クォータニオンとして
ScaleFVector3取得/設定ローカルスケールファクター
MatrixMatrix4取得/設定合成されたローカル変換行列

参照

 日本語