<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" lang="EN-US" link="blue" text="#000000"
 vlink="purple">
Richard Hayes wrote:
<blockquote cite="mid006701c7400e$5f3754d0$0264a8c0@rhwxp" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Hello guys.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Slightly off topic, but it's
something I'm programming in PHP on a Linux server so it kind of counts.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I'm writing some stuff in GD lib
(php) which draws me nice graphs. Except&nbsp;I can't remember a thing about
trigonometry from school and I'm struggling.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I have two set of coordinates, eg:<br>
  </font></div>
  <div><font face="Arial" size="2">1. 0,0</font></div>
  <div><font face="Arial" size="2">2. 25,25</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">With a line drawn between them.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I know that this line is at 135
degrees from 0 (correct me if i'm wrong!). What calculation can I do on
these number to give this this amount in degrees?</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">(Or, let's say my coords are 0,0
drawn to 50,0, then my angle is 90 degrees (a right angle).)</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">It's really as simple as that.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I've googled and googled and
googled, but I'm beat.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Any help?</font></div>
</blockquote>
sounds like you are trying to convert between polar and rectangular<font
 face="Century Gothic, Arial, Helvetica"> coordinates? , if so</font> :-<br>
<a class="moz-txt-link-freetext" href="http://www.teacherschoice.com.au/Maths_Library/Coordinates/polar_-_rectangular_conversion.htm">http://www.teacherschoice.com.au/Maths_Library/Coordinates/polar_-_rectangular_conversion.htm</a><br>
has some info on this (including the formulas)<br>
<blockquote cite="mid006701c7400e$5f3754d0$0264a8c0@rhwxp" type="cite">
  <div><font face="Arial" size="2"><br>
Thanks!</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Kind regards,</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Richard Hayes<br>
DomainArena<br>
  <a href="mailto:ricky@domainarena.net">ricky@domainarena.net</a></font></div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nottingham mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nottingham@mailman.lug.org.uk">Nottingham@mailman.lug.org.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/nottingham">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a></pre>
</blockquote>
<br>
</body>
</html>