Code: Select all
local a,b,c,d = x*0.5*w, -y*0.5*h, x*0.25*w, y*0.25*h
local matrix = {d, -b, -c, a}
--Using the inverse of the matrix
for i,v in ipairs(matrix) do
matrix[i] = (1/(a*d-b*c))*v
end
Code: Select all
local a,b,c,d = x*0.5*w, -y*0.5*h, x*0.25*w, y*0.25*h
local matrix = {d, -b, -c, a}
--Using the inverse of the matrix
for i,v in ipairs(matrix) do
matrix[i] = (1/(a*d-b*c))*v
end
Users browsing this forum: Ahrefs [Bot] and 4 guests