/ Published in: PHP
get angle between two points (x1, y1) & (x2, y2)
Expand |
Embed | Plain Text
function getAngle($x1, $y1, $x2, $y2) { $dx = $x2 - $x1; $dy = $y2 - $y1; }
You need to login to post a comment.
mscribellito on 02/11/11
1 person have marked this snippet as a favorite
get angle between two points (x1, y1) & (x2, y2)
function getAngle($x1, $y1, $x2, $y2) { $dx = $x2 - $x1; $dy = $y2 - $y1; }
You need to login to post a comment.