refresh my mind-trigonometry

Blitz3D Forums/Blitz3D Programming/refresh my mind-trigonometry

Kalisme(Posted 2006) [#1]
this is really embassasing... I was sitting down attempting to write a little 3d engine though 2d commands... (I'm actually using blitzplus... a demo... I'm on holliday and I left my blitz3d cd at home... I'm trying to fill in time)
anywho, here's my problem:
I'm trying to write what I guess could be called a 2d Line of sight algorithm...
I have 2 objects (both with x and y values)
a camera and an object to detect...
and half way through, I noticed I've forgotten how to find the angle between 2 objects (O_O)
(drawn from camera object to the other object)
erm... sorry about this, guys...
but could someone please write down the formulas for me?
I know it's like 2 or something lines... this is really embarrasing :(
I'll be thankful for any help


WolRon(Posted 2006) [#2]
Does this help?
http://www.blitzbasic.com/Community/posts.php?topic=50227&hl=atan