All pastes #797293 Raw Edit

Something

public lua v1 · immutable
#797293 ·published 2007-11-25 21:55 UTC
rendered paste body
radius = math.cos(angle) * y + math.sin(angle) * x;if not quadTable[quadrantIndex] then	if (angle < PI*1/4 and angle > -PI*1/4) then		radius = radius*math.cos(angle)	elseif (angle > PI*3/4 or angle < -PI*3/4) then		radius = -radius*math.cos(angle)	elseif (angle < PI*3/4 and angle > PI*1/4) then		radius = radius*math.sin(angle)	elseif (angle > -PI*3/4 and angle < -PI*1/4) then		radius = -radius*math.sin(angle)	endend