In this SO question, someone asked for calculating an angle from three points. I need to do the opposite thing.
I want to draw a clock, and I have tiny tick images.
let a be the angle, (x,y) the center point and r the radius, then your point will be at
(x + r*cos(a), y + r*sin(a))