Function used to generate a transformation matrix according to a translation vector, an angle, a rotation axis and a scale vector entered by the user.
Arguments
Name | Input/Output | Required? | Type | Comment |
Translation | In | No | Vector | Vector that represents the translation.
|
Angle | In | No | Real | Rotation angle in degrees.
|
RotationAxis | In | No | Vector | Vector that represents the rotation axis.
|
Scale | In | No | Vector | Vector that represents the scale.
The default value is (1,1, 1) |
Example
let T, R, S (Vector)
let A (Real)
let M (Matrix)
T = [2, 2, 2]
A = 0
R = [1, 0, 0]
S = [3, 3, 3]
M = TransformationMatrix (T, A, R)
M = TransformationMatrix (T, A, R, S)
T = [1, 1, 1]
A = 90
M = TransformationMatrix (T, A, R)