<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<DEFANGED_meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks.<br>
This assumes that the xy are at a equal distant grid. Looking around
the code, I'm not certain whether some internal variables has this
property ?<br>
<br>
Regards Christian<br>
<br>
<br>
Laurent BESSON wrote:<br>
<blockquote type="cite"
cite="midPine.LNX.4.44.0310151459060.8511-100000@caribou.u-bourgogne.fr">
<pre wrap="">If your first point P1 as the following coordinates:
(x1,y1) and your P2 as the coordinates (x2,y2)
You can get the angle by the formula:
arctan((y2-y1)/(x2-x1))
or alternatively:
arcsin((x2-x1)/dist)
or
arccos((y2-y1)/dist)
Can anyone correct me if i'm wrong
Laurent
On Wed, 15 Oct 2003, Christian G. Tveen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I need a way to calculate the bearing / angle between two points. To be
more precise, I need to know in what direction and how long to go from
one point to get to the other. I use the distance functionality to
calculate 'how long to go' but need the direction. Is there any
functions to do so ? If this is not sufficient information, pls. don't
hesitate asking me.
Regards
Christian G. Tveen
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>