TransformBuilder

Vue de l’ensemble

‘TransformBuilder’ est une classe dans Aspose.3D FOSS pour Typescript.

TransformBuilder.constructor crée un nouveau Transformbuilder; les surcharges permettent la matrice initiale et compose l’ordre.

Cette classe fournit 13 méthodes pour travailler avec des objets TransformBuilder dans les programmes de type. Les méthodologies disponibles comprennent: append, compose , ‘constructor،prepend;rearrange; reset : rotatéDegree ; 'rotateEulerDgree . rotatEularRadian. rotatRadian., scale et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application TypeScript après l’installation de l’ASPOSE.3D FOSS pour le package TypeScripts. Propriétés : compposeOrder,, matrix`..

Description

‘TransformBuilder’ est une classe dans la bibliothèque Aspose.3D FOSS pour TypeScript qui expose 23 méthodes et 2 propriétés pour l’utilisation programmatique.

Les capacités de base comprennent: ‘matrix4’; ‘composeorder’ ; crée un nouveau transformbuilder ; les surcharges permettent la matrice initiale et composer l’ordre. Ces opérations permettant aux développeurs d’intégrer directement la fonctionnalité du transformBuilder dans les applications TypeScript.

La classe propose 4 surcharges constructeurs, permettant une initialisation flexible en fonction du contexte de l’appel.

Propriétés

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

méthodes

SignatureDescription
constructor()Creates a new TransformBuilder; overloads allow initial matrix and compose order
constructor(initial: Matrix4, order: ComposeOrder)Creates a TransformBuilder initialized with the given matrix and compose order
constructor(order: ComposeOrder)Creates a TransformBuilder using the identity matrix and the specified compose order
constructor()Creates a default TransformBuilder with identity matrix
scale(s: number)TransformBuilderSets non‑uniform scaling factors x, y, z and returns the builder
scale(x: number, y: number, z: number)TransformBuilderSets non-uniform scaling factors x, y, z and returns the builder
scale(s: Vector3)TransformBuilderSets scaling from a Vector3 and returns the builder
scale()TransformBuilderApplies scaling from the packed argument and returns the builder
rotateDegree(angle: number, axis: Vector3)TransformBuilderReturns the builder or does nothing when called without arguments
rotateDegree(rot: Vector3, order: RotationOrder)Rotates by Euler angles in degrees using the specified rotation order and returns the builder
rotateDegree() → `TransformBuildervoid`
rotateRadian(angle: number, axis: Vector3)TransformBuilderRotates by angle (radians) around the given axis and returns the builder
rotateRadian(rot: Vector3, order: RotationOrder)Rotates by Euler angles in radians using the specified rotation order and returns the builder
rotateRadian() → `TransformBuildervoid`
rotateEulerRadian(x: number, y: number, z: number)TransformBuilderRotates by Euler angles from Vector3 r (radians) and returns the builder
rotateEulerRadian(r: Vector3)TransformBuilderRotates by Euler angles from the Vector3 r (in radians) and returns the builder
rotateEulerRadian()TransformBuilderApplies Euler rotation in radians from packed arguments and returns the builder
translate(tx: number, ty: number, tz: number)TransformBuilderMoves by tx, ty, tz and returns the builder
translate(v: Vector3)TransformBuilder
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

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français