Transform — Aspose.3D FOSS for .NET

Example

Example Transform 클래스는 로컬 변환을 정의합니다 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
TranslationFVector3get/set로컬 위치 오프셋
RotationQuaternionget/set단위 쿼터니언으로 표현된 로컬 회전
ScaleFVector3get/set로컬 스케일 팩터
MatrixMatrix4get/set합성 로컬 변환 행렬

참고

 한국어