TransformBuilder

TransformBuilder

General

TransformBuilder és una classe de l’Aspose.3d per a Typescript. Hereta del: ゚TransformBuilder⌒ .

TransformBuilder ofereix una API fluent per compondre matrius de transformació amb escala, rotació (grats, radians o Euler) i traducció, i permet especificar l’ordre de composició.

Propietats

NameTypeAccessDescription
matrixMatrix4ReadRepresents the current transformation matrix of the builder
composeOrderComposeOrderReadIndicates the order in which compose operations are applied

Mètodes

SignatureDescription
constructor()Creates a builder using the supplied matrix and compose order
constructor(initial: Matrix4, order: ComposeOrder)
constructor(order: ComposeOrder)
constructor()
scale(s: number) → TransformBuilderApplies uniform scaling by factor s and returns the builder
scale(x: number, y: number, z: number) → TransformBuilder
scale(s: Vector3) → TransformBuilder
scale() → TransformBuilder
rotateDegree(angle: number, axis: Vector3) → TransformBuilderPerforms no rotation and may return the builder or void depending on overload
rotateDegree(rot: Vector3, order: RotationOrder)
rotateDegree() → `TransformBuildervoid`
rotateRadian(angle: number, axis: Vector3) → TransformBuilderApplies Euler rotation in radians using the given order
rotateRadian(rot: Vector3, order: RotationOrder)
rotateRadian() → `TransformBuildervoid`
rotateEulerRadian(x: number, y: number, z: number) → TransformBuilderRotates using a vector of Euler angles in radians and returns the builder
rotateEulerRadian(r: Vector3) → TransformBuilder
rotateEulerRadian() → TransformBuilder
translate(tx: number, ty: number, tz: number) → TransformBuilderApplies translation by the given offsets and returns the builder
translate(v: Vector3) → TransformBuilder
translate() → TransformBuilder
compose(m: Matrix4)Composes the supplied matrix into the builder’s matrix (void)
append(m: Matrix4) → TransformBuilderMultiplies the current matrix by m on the right and returns the builder
prepend(m: Matrix4) → TransformBuilder
rearrange(newX: Axis, newY: Axis, newZ: Axis) → TransformBuilderReorders the axes of the transformation and returns the builder
rotate(q: Quaternion) → TransformBuilderApplies rotation defined by quaternion q and returns the builder
rotateEulerDegree(degX: number, degY: number, degZ: number) → TransformBuilderRotates using Euler angles in degrees and returns the builder
reset()Resets the builder’s matrix to the identity matrix (void)
 Català