Skip to content

Commit

Permalink
update to affine2d changes of degress -> radians
Browse files Browse the repository at this point in the history
  • Loading branch information
capr committed Feb 5, 2016
1 parent 7ffdd5b commit 6cc5e48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion path2d_editor_demo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ local path = {
'rel_text', 0, 0, {size=70}, 'mittens',
}

local mt = affine2d()--:translate(100, 0):rotate(10):scale(1, .7)
local mt = affine2d()--:translate(100, 0):rotate(math.rad(10)):scale(1, .7)
local invmt = mt:inverse()
local points, update = path_editor.control_points(path, mt)

Expand Down
2 changes: 1 addition & 1 deletion path2d_svgarc_demo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function player:on_render(cr)
end

local world_center_x, world_center_y = 600, 300
local mt = matrix():rotate_around(world_center_x, world_center_y, world_rotation)
local mt = matrix():rotate_around(world_center_x, world_center_y, math.rad(world_rotation))

local function draw(x1, y1, rx, ry, rotation, large, sweep, x2, y2, r, g, b, a)
if not svgarc.valid(x1, y1, x2, y2, rx, ry) then return end
Expand Down

0 comments on commit 6cc5e48

Please sign in to comment.