forked from pyrex/chameleonic
main #12
@ -1288,10 +1288,12 @@ function would_stick(x0,y0,anchor,x2,y2)
|
|||||||
local dy=y2-y0
|
local dy=y2-y0
|
||||||
|
|
||||||
-- there is no reason for an acute angle to stick around in this world
|
-- there is no reason for an acute angle to stick around in this world
|
||||||
|
--[[
|
||||||
local ang0=atan2(x2-x1,y2-y1)
|
local ang0=atan2(x2-x1,y2-y1)
|
||||||
local ang2=atan2(x0-x1,y0-y1)
|
local ang2=atan2(x0-x1,y0-y1)
|
||||||
local diff=abs((ang0-ang2 + 0.5)%1-0.5)
|
local diff=abs((ang0-ang2 + 0.5)%1-0.5)
|
||||||
if (diff<0.25) return false,x0,y0,0,0
|
if (diff<0.25) return false,x0,y0,0,0
|
||||||
|
]]--
|
||||||
|
|
||||||
local adx,ady
|
local adx,ady
|
||||||
local x1_new,y1_new
|
local x1_new,y1_new
|
||||||
|
Loading…
Reference in New Issue
Block a user