Transform

Overview

Transform is a class in Aspose.3D FOSS for Typescript. Inherits from: A3DObject.

Transform.constructor creates a Transform instance identified by the given name.

This class provides 11 methods for working with Transform objects in Typescript programs. Available methods include: constructor, setEulerAngles, setGeometricRotation, setGeometricScaling, setGeometricTranslation, setPostRotation, setPreRotation, setRotation, setScale, setTranslation, toString. All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package. Properties: eulerAngles, geometricRotation, geometricScaling, geometricTranslation, postRotation, preRotation, and 8 more.

Description

Transform is a class in the Aspose.3D FOSS library for TypeScript that exposes 10 methods and 14 properties for programmatic use. It extends A3DObject, inheriting shared functionality from its parent type.

Core capabilities include: vector3; vector3; quaternion. These operations enable developers to integrate transform functionality directly into TypeScript applications.

Instances are created through a single constructor that initializes the object with default values.

Properties

NameTypeAccessDescription
translationVector3Read/WriteGets the translation.
scalingVector3Read/WriteGets the scaling.
rotationQuaternionRead/WriteGets the rotation.
eulerAnglesVector3Read/WriteGets the euler angles.
scalingOffsetVector3Read/WriteGets the scaling offset.
scalingPivotVector3Read/WriteGets the scaling pivot.
rotationOffsetVector3Read/WriteGets the rotation offset.
rotationPivotVector3Read/WriteGets the rotation pivot.
preRotationVector3Read/WriteGets the pre rotation.
postRotationVector3Read/WriteGets the post rotation.
geometricTranslationVector3Read/WriteGets the geometric translation.
geometricScalingVector3Read/WriteGets the geometric scaling.
geometricRotationVector3Read/WriteGets the geometric rotation.
transformMatrixMatrix4Read/WriteGets the transform matrix.

Methods

SignatureDescription
constructor(name: string)Creates a Transform instance identified by the given name
setTranslation(tx: number, ty: number, tz: number)TransformSets the translation value.
setScale(sx: number, sy: number, sz: number)TransformSets the scale value.
setEulerAngles(rx: number, ry: number, rz: number)TransformSets the euler angles value.
setRotation(rw: number, rx: number, ry: number, rz: number)TransformSets the rotation value.
setPreRotation(rx: number, ry: number, rz: number)TransformSets the pre rotation value.
setPostRotation(rx: number, ry: number, rz: number)TransformSets the post rotation value.
setGeometricTranslation(x: number, y: number, z: number)TransformSets the geometric translation value.
setGeometricScaling(sx: number, sy: number, sz: number)TransformSets the geometric scaling value.
setGeometricRotation(rx: number, ry: number, rz: number)TransformSets the geometric rotation value.
toString()string

See Also

 English