setToTranslation
setToTranslation
matrix3d:setToTranslation(vec: Vector3d)
<matrix3d>:setToTranslation({x, y, z})
<matrix3d>:setToTranslation(x, y, z)
Imposta questa matrice al valore di traslazione dovuto al vettore vec.
Esempio. Esempio setToTranslation()
local mat = Matrix3d()
local v1 = Vector3d(100.0, 200.0, 50.0)
mat:setToTranslation(v1)
Esempio 1. Esempio setToTranslation
local m = Matrix3d()
m:setToTranslation(Vector3d(10, 5, 0))
entlast():transformBy(m)