transformΒΆ
class transform
A transform is a set of matrices placed in time at inter-frames
Members
| create | ( ) | create an uninitialised transform |
| create | (
|
create a transform optionally set to identity |
| create | (
|
create a transform initialised to the matrix |
| create | (
|
create a copy of the source transform |
| addmatrix | (
|
Add a matrix and its time at the end of the transform |
| compose | (
|
Right compose by another transform. The result may be inccaurate if the final number of matrices is above 6. |
| copy | (
|
copy a transform into this transform |
| copy | (
|
copy a a matrix into this transform as a single matrix |
| createcompose | (
|
Create the compose transform of first times second |
| createinverted | ( ) | Create the transform inserse |
| getmatrix | (
|
return the nth matrix of the transform |
| getstepcount | ( ) | Return the number of steps in this transform |
| gettime | (
|
Get the transform time at index |
| interpolate | (
|
|
| invert | ( ) | Invert the transform |
| isidentity | ( ) | Returns true if the transform is identity |
| serialstring | ( ) | Returns a Lua evaluable string to create this object |
| setmatrix | (
|
Set the matrix by its index |
| setscale | (
|
Force the scale of the transform |
| setscaleafter | (
|
Force the scale of the transform after the rotation component of the transform |
| settime | (
|
Set the transform time at index |
| symetric | (
|
Compute the symetric of this transform by a plane defined by another transform's position and axis |
| symetric | (
|
Compute the symetric of this transform by a plane defined by a point and a normal vector |
| transform | (
|
Copy the transform and apply a function on each matrix of the copy. |
| translate | (
|
Translate a transform, all matrices are translated |
Documentation
Add a matrix and its time at the end of the transform
source the matrix to addtime the time associated
Right compose by another transform. The result may be inccaurate if the final number of matrices is above 6.
right the transform to compose on the right
copy a transform into this transform
source the source transform
result
copy a a matrix into this transform as a single matrix
source the source matrix
result
Create the compose transform of first times second
first the first matrix|transformsecond the second matrix|transform
result
Create the transform inserse
inverse
return the nth matrix of the transform
index Matrix number to return
result
Return the number of steps in this transform
Get the transform time at index
index the index in the transform
result
t The time of the inbetween matrix (0 ~ 1)
mtx The resulting interpolated matrix
Invert the transform
Returns true if the transform is identity
identity True when the transform is identity
Returns a Lua evaluable string to create this object
Set the matrix by its index
index the index in the transformsource the matrix to set
Force the scale of the transform
scale the scale factor to apply
Force the scale of the transform after the rotation component of the transform
scale the scale factor to apply
Set the transform time at index
index the index in the transformtime the time to set
Compute the symetric of this transform by a plane defined by another transform's position and axis
s The symetry plane tranformaxis The axis of the symetry transform to use as symetry plane normal ("x", "y" or "z")
symetric The resulting symetric transform
Compute the symetric of this transform by a plane defined by a point and a normal vector
P The symetry plane pointu The symetry plane normal vector
symetric The resulting symetric transform
Copy the transform and apply a function on each matrix of the copy.
source the transform to transformfunc the user function to apply on each matrix of the transform
result The resulting transform
Translate a transform, all matrices are translated
translation the translation