From: Peter Proost on
On 28/04/2010 11:44, Andrew Morton wrote:
> Peter Proost wrote:
>> I've got an extra question which I forgot to mention in my original
>> post. Thanks to your answer I can calculate x3,y3, but they need to be
>> calculated with respect to the angle of the x1,y1 - x2,y2 line. I hope
>> you get what I mean.
>
> Angle of line (p1,p2) in radians=atan2(y2-y1, x2-x1) where p1=(x1,y1) and
> p2=(x2,y2).
>
> I recommend that you keep all angles in the code in radians, and only do the
> degrees<->radians conversions at the user-interface level.
>
> HTH
>

Thanks again for your answer, I'll give it a try later on. Just got out
of a meeting, and got a new one coming in 5 minutes.

Thanks,

Peter