Hi
If (xa,ya) is your center point and (xb,yb) is your point to be rotated, the
new point will be:
x = xa + (xb-xa) * cos v - (yb-ya) * sin v
y = ya + (xb-xa) * sin v + (yb-ya) * cos v
Kind regards
Uffe Kousgaard
www.routeware.dk
----- Original Message -----
From: "Fran�ois Robitaille" <[EMAIL PROTECTED]>
To: "MapInfo-L" <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 4:54 PM
Subject: MI-L MB: Rotation Algorithm
Dear All,
Does anyone know an algorithm that can be used to rotate a point around
another one (I'm working in MapBasic but a simple equation may be OK). I
know the coordinates of both points and I wish to specify the angle in
degrees.
Thank your for your responses.
Fran�ois Robitaille
Conseiller en g�omatique
SiGis
514.247.8845
[EMAIL PROTECTED]
Fran�ois Robitaille
Conseiller en g�omatique
SiGis
514.247.8845
[EMAIL PROTECTED]
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.