Original Post
🔒 Locked
i need some help
Advertisement
This is off the top of my head:
Hope that is correct.
EDIT: Added code tags to preserve formatting
[edited by - Erunama on May 31, 2002 5:07:20 PM]
Point A = (Ax, Ay) <-- this is the starting point (which you say is given)
Point B = (Bx, By)
= (Ax + length*cos(angle),Ay + length*sin(angle))
Slope = (By - Ay) / (Bx - Ax)
Hope that is correct.
EDIT: Added code tags to preserve formatting
[edited by - Erunama on May 31, 2002 5:07:20 PM]
pyro: What form are you storing your angles in, degrees or radians? If you are using degrees, then of course you will be having problems because trig functions use radian measure.
To convert, just multiply the degree measurement by 180/PI
Here''s a little real code/pseudo-code:
To convert, just multiply the degree measurement by 180/PI
Here''s a little real code/pseudo-code:
#define PI 3.14159
...
angle = angle*180/PI
sin(angle)
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement