TransformBuilder

TransformBuilder

Overview

TransformBuilder is a class in Aspose.3D FOSS for TypeScript.

TransformBuilder.constructor creates a new TransformBuilder; overloads allow initial matrix and compose order.

This class declares 27 methods for TransformBuilder objects in TypeScript programs. Available methods include: append, compose, constructor, prepend, rearrange, reset, rotate, rotateDegree, rotateEulerDegree, rotateEulerRadian, rotateRadian, scale, and 1 additional methods. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: composeOrder, matrix.

Properties

NameTypeAccessDescription
matrixMatrix4Read/WriteGets the matrix.
composeOrderComposeOrderRead/WriteGets the compose order.

Methods

SignatureDescription
constructor()Creates a new TransformBuilder; overloads allow initial matrix and compose order
constructor(initial: Matrix4, order: ComposeOrder)Calls constructor(initial, order) on this TransformBuilder instance.
constructor(order: ComposeOrder)Calls constructor(order) on this TransformBuilder instance.
constructor()
scale(s: number)TransformBuilderSets non‑uniform scaling factors x, y, z and returns the builder
scale(x: number, y: number, z: number)TransformBuilderCalls scale(x, y, z) on this TransformBuilder instance.
scale(s: Vector3)TransformBuilderCalls scale(s) on this TransformBuilder instance.
scale()TransformBuilder
rotateDegree(angle: number, axis: Vector3)TransformBuilderReturns the builder or does nothing when called without arguments
rotateDegree(rot: Vector3, order: RotationOrder)Calls rotateDegree(rot, order) on this TransformBuilder instance.
rotateDegree()TransformBuilder | void
rotateRadian(angle: number, axis: Vector3)TransformBuilderCalls rotateRadian(angle, axis) on this TransformBuilder instance.
rotateRadian(rot: Vector3, order: RotationOrder)Calls rotateRadian(rot, order) on this TransformBuilder instance.
rotateRadian()TransformBuilder | void
rotateEulerRadian(x: number, y: number, z: number)TransformBuilderRotates by Euler angles from Vector3 r (radians) and returns the builder
rotateEulerRadian(r: Vector3)TransformBuilderCalls rotateEulerRadian(r) on this TransformBuilder instance.
rotateEulerRadian()TransformBuilder
translate(tx: number, ty: number, tz: number)TransformBuilderMoves by tx, ty, tz and returns the builder
translate(v: Vector3)TransformBuilderCalls translate(v) on this TransformBuilder instance.
translate()TransformBuilder
compose(m: Matrix4)Composes the given matrix into the builder’s current matrix
append(m: Matrix4)TransformBuilderAppends matrix m to the current transformation and returns the builder
prepend(m: Matrix4)TransformBuilderPrepends matrix m before the current transformation and returns the builder
rearrange(newX: Axis, newY: Axis, newZ: Axis)TransformBuilderReorders axes to newX, newY, newZ and returns the builder
rotate(q: Quaternion)TransformBuilderApplies quaternion rotation q to the builder and returns the builder
rotateEulerDegree(degX: number, degY: number, degZ: number)TransformBuilderRotates by Euler angles in degrees and returns the builder
reset()Clears all transformations, resetting to the identity matrix

See Also

 English