TransformBuilder

TransformBuilder class

Le TransformBuilder est utilisé pour construire une matrice de transformation par une chaîne de transformations.

Méthodes

constructor

NomDescription
constructor(initial, order)Construit un TransformBuilder avec la matrice de transformation initiale et l’ordre de composition spécifié

Parameters:

NomTypeDescription
initiaMatrix4null
ordreComposeOrderComposeOrder

Result:


constructor_overload

NomDescription
constructor_overload(order)Construit un TransformBuilder avec la matrice de transformation identité initiale et l’ordre de composition spécifié

Parameters:

NomTypeDescription
ordreComposeOrderComposeOrder

Result:


getMatrix

NomDescription
getMatrix()Obtient ou définit la valeur de la matrice actuelle

Result:


setMatrix

NomDescription
setMatrix(value)Obtient ou définit la valeur de la matrice actuelle

Result:


getComposeOrder

NomDescription
getComposeOrder()Obtient ou définit l’ordre de composition de la chaîne. La valeur de la propriété est la constante entière ComposeOrder.

Result:


setComposeOrder

NomDescription
setComposeOrder(value)Obtient ou définit l’ordre de composition de la chaîne. La valeur de la propriété est la constante entière ComposeOrder.

Result:


compose

NomDescription
compose(m)Ajouter ou préfixer l’argument à la matrice interne.

Parameters:

NomTypeDescription
Matrix4null

Result:


append

NomDescription
append(m)Ajouter la nouvelle matrice de transformation à la chaîne de transformation.

Parameters:

NomTypeDescription
Matrix4null

Result:


prepend

NomDescription
prepend(m)Préfixer la nouvelle matrice de transformation à la chaîne de transformation.

Parameters:

NomTypeDescription
Matrix4null

Result:


rearrange

NomDescription
rearrange(newX, newY, newZ)Réorganiser la disposition de l’axe.

Parameters:

NomTypeDescription
newXAxeAxe
newYAxeAxe
newZAxeAxe

Result:


scale

NomDescription
scale(s)Chaîner une matrice de transformation d’échelle avec un composant mis à l’échelle par s

Parameters:

NomTypeDescription
Nombrenull

Result:


scale

NomDescription
scale(x, y, z)Chaîner une matrice de transformation d’échelle

Parameters:

NomTypeDescription
Nombrenull
Nombrenull
Nombrenull

Result:


scale

NomDescription
scale(s)Chaîner une transformation d’échelle

Parameters:

NomTypeDescription
Vector3null

Result:


rotateDegree

NomDescription
rotateDegree(angle, axis)Chaîner une transformation de rotation en degrés

Parameters:

NomTypeDescription
angleNombreL’angle à faire pivoter en degrés
axeVector3L’axe de rotation

Result:


rotateRadian

NomDescription
rotateRadian(angle, axis)Chaîner une transformation de rotation en radians

Parameters:

NomTypeDescription
angleNombreL’angle à faire pivoter en radians
axeVector3L’axe de rotation

Result:


rotate

NomDescription
rotate(q)Chaîner une rotation par un quaternion

Parameters:

NomTypeDescription
Quaternionnull

Result:


rotateEulerDegree

NomDescription
rotateEulerDegree(degX, degY, degZ)Chaîner une rotation par des angles d’Euler en degrés

Parameters:

NomTypeDescription
degNombrenull
degNombrenull
degNombrenull

Result:


rotateEulerRadian

NomDescription
rotateEulerRadian(x, y, z)Chaîner une rotation par des angles d’Euler en radians

Parameters:

NomTypeDescription
Nombrenull
Nombrenull
Nombrenull

Result:


rotateEulerRadian

NomDescription
rotateEulerRadian(r)Chaîner une rotation par des angles d’Euler en radians

Parameters:

NomTypeDescription
Vector3null

Result:


translate

NomDescription
translate(tx, ty, tz)Chaîner une transformation de translation

Parameters:

NomTypeDescription
tNombrenull
tNombrenull
tNombrenull

Result:


translate

NomDescription
translate(v)Chaîner une transformation de translation

Parameters:

NomTypeDescription
Vector3null

Result:


reset

NomDescription
reset()Réinitialiser la transformation à la matrice identité

Result:


rotateDegree

NomDescription
rotateDegree(rot, order)Ajouter une rotation avec l’ordre spécifié

Parameters:

NomTypeDescription
rotVector3Rotation en degrés
ordreRotationOrderRotationOrder

Result:


rotateRadian

NomDescription
rotateRadian(rot, order)Ajouter une rotation avec l’ordre spécifié

Parameters:

NomTypeDescription
rotVector3Rotation en radians
ordreRotationOrderRotationOrder

Result: