Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

granat

Inverted Sin, How ?

This topic is 6152 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a INVERTED SINUS function in C++ (Visual C++) ?? I mean instead of me giving the angle as parameter I give a number and receive the angle. I looked trough math.h but could not find it there... -- Look at you hacker. A Pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?-- "Yeah, I''ve seen people w/ ''so-called'' lives. They are petty and thoughtless." - Nazrix

Share this post


Link to post
Share on other sites
Advertisement
I automatically searched through the math.h file with the following search words: INV, SINI, ISIN etc...

Nothing was found...



Share this post


Link to post
Share on other sites
Actually, the inverted function of the sin function is the arcsin or asin function. So try looking for asin.

Okay, I just looked it up. It''s the asin function.

Dormeur

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

stevenmarky:

An inverse trig function takes a value as it''s parameter, and returns the angle. So,



// using degrees

sin(45) = 0.7071
asin(0.7071) = 45



Same deal with cos/acos, and tan/atan. They have an ''a'' in front, because they are called arc-sine, arc-cosine, and arc-tangent.


Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!