setToScaling

matrix3d:setToScaling(scl) --> nil

Imposta questa matrice sulla matrice del ridimensionamento uniforme per scala del fattore di scala Tutto rispetto al centro del punto.

Esempio. Esempio setToScaling()

local mat = Matrix3d()
mat:setToScaling(200)
mat:setToIdentity() --> {200, 0, 0, 0,   0, 200, 0, 0,   0, 0, 200, 0,  0, 0, 0, 1}

local m = Matrix3d()
m:setToScaling(2, Point(0,0,0))   -- scala 2× rispetto all'origine

Created with the Personal Edition of HelpNDoc: Easily convert your WinHelp HLP help files to CHM with HelpNDoc's step-by-step guide