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
| Name | Type | Access | Description |
|---|---|---|---|
matrix | Matrix4 | Read | Represents the current transformation matrix of the builder |
composeOrder | ComposeOrder | Read | Indicates the order in which compose operations are applied |
Mètodes
| Signature | Description |
|---|---|
constructor() | Creates a builder using the supplied matrix and compose order |
constructor(initial: Matrix4, order: ComposeOrder) | |
constructor(order: ComposeOrder) | |
constructor() | |
scale(s: number) → TransformBuilder | Applies 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) → TransformBuilder | Performs no rotation and may return the builder or void depending on overload |
rotateDegree(rot: Vector3, order: RotationOrder) | |
rotateDegree() → `TransformBuilder | void` |
rotateRadian(angle: number, axis: Vector3) → TransformBuilder | Applies Euler rotation in radians using the given order |
rotateRadian(rot: Vector3, order: RotationOrder) | |
rotateRadian() → `TransformBuilder | void` |
rotateEulerRadian(x: number, y: number, z: number) → TransformBuilder | Rotates 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) → TransformBuilder | Applies 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) → TransformBuilder | Multiplies the current matrix by m on the right and returns the builder |
prepend(m: Matrix4) → TransformBuilder | |
rearrange(newX: Axis, newY: Axis, newZ: Axis) → TransformBuilder | Reorders the axes of the transformation and returns the builder |
rotate(q: Quaternion) → TransformBuilder | Applies rotation defined by quaternion q and returns the builder |
rotateEulerDegree(degX: number, degY: number, degZ: number) → TransformBuilder | Rotates using Euler angles in degrees and returns the builder |
reset() | Resets the builder’s matrix to the identity matrix (void) |