Top

$GetAngle

Please Register to submit score.
Average Score  7.3
Scores Submitted  3
Date Added  May 06, 2008
Last Updated  May 10, 2008
Tags  angle  angles  bluethen  etc  getangle  trig  trigonometry 

Introduction

$getangle is just what it sounds like, it retrieves the angle of any two points using triangles and trigonometry.

Updates:
Fixed an error where the angle is sometimes off by 20 degrees.

Grab the Code

Comments

  (7)  RSS
BlueThen
Comments: 150
 
Posted on May 6, 2008 4:18 pm
Aw, someone rated it a 4.


Sorry it's not a cool picwin or anything, but it honestly took me hours to find this out.
^Neptune
Comments: 129
 
Posted on May 6, 2008 4:22 pm
This could be really useful for picwin makers. Good job. Try making the variables local (var %variable), it's nice to stop the variables bit clogging up. :)
BlueThen
Comments: 150
 
Posted on May 6, 2008 4:31 pm
Oh, I forgot. This was originally was an experimentation, but someone wanted it.
jonesy44
Comments: 364
 
Posted on May 6, 2008 4:32 pm
Good stuff, i'll no doubt need this for my next picwin .. when i try it haha !
But it'll be pretty hard i guess.

Promise ya don't steal it, but i think i'll need a simple one of newton's laws to work it ;D
Noutrious
Comments: 316
 
Posted on May 7, 2008 2:49 pm
Respecting this not only because of the good coding, but of the mathematical skills too - i couldn't figure this out actually.
BlueThen
Comments: 150
 
Posted on May 10, 2008 2:23 pm
Updated. I've been getting some complaints saying that it was off by 20 or so degrees every now and then. So after about a hour of looking, I finally found out that the length wasn't accurate...

So now it's fixed. ;)
jonesy44
Comments: 364
 
Posted on May 10, 2008 5:09 pm
Nice one, never got round to using this ident yet :P

Please Register or Login to start posting comments.
Bottom