transformBy

line:transformBy(mat: Matrix3d)

Trasforma la linea in base alla matrice passata.

Esempio 1. Esempio transformBy

entmake{ {0, "CIRCLE"}, {10, Point(0, 0, 0)}, {40, 2} }
local e = entlast()
local m = {1,0,0,20, 0,1,0,15, 0,0,1,0, 0,0,0,1}
e:transformBy(m)
local c = e:getCenter()
print("\ntransformBy(20,15): centro = (" .. tostring(c:getX()) .. "," .. tostring(c:getY()) .. ")")
e:erase()

Created with the Personal Edition of HelpNDoc: Eliminate the Struggles of Documentation with a Help Authoring Tool