Advertisement

trig math question

Started by November 25, 2002 01:01 PM
3 comments, last by Leroy1891 22 years, 3 months ago
i know to use sine and cosine to calculate a point on a circle with a given radius, but i was wondering if anyone knew a formula that takes a line and returns it''s angle relative to an axis like the x axis?
In taking a peak at the math library... i don''t see an inverse sin function!

how rude!

This makes things a bit more difficult for you... anyone have the inverse sin formula?
Advertisement
asin(), acos(), atan(), atan2()

That is, arcsin, arccos, and arctan, which are the inverse functions, just using their ''proper'' mathematical names.
quote:
Original post by C-Junkie
In taking a peak at the math library... i don''t see an inverse sin function!

how rude!

This makes things a bit more difficult for you... anyone have the inverse sin formula?


it''s called arc sin or asin() and asinl() as the long version. they''re both defined in math.h

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Dont forget to reduce to a unit vector (radius of 1).

"Free advice is seldom cheap."
-- Rule of Acquisition #59

This topic is closed to new replies.

Advertisement