Record of some of the computer tech I deal with so that it's documented at least somewhere.

Tuesday 24 March 2009

more trig

for a half circle

for a point X, Y

if X < w / 2

x = ( w / 2 ) - X

a = atan(y / x)
R = sqrt(x * x + h * h)
scale = h / R

No comments: