Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by AyJayKaySoft · Jul 20, 2012 at 04:07 PM · mathfdegree

How do I get the 'normal' Sinus?

Hi there :), I'm sorry, I think my problem is a little one but it just doesn't work since 2 hours... The Sinus of 90 degree is 1.

Mathf.Sin(90) //doesn't work Mathf.Sin(90) multiplied Mathf.Rad2Deg //doesn't work Mathf.Sin(90) multiplied Mathf.Rad2Deg) //nope :) Mathf.Sin(90) multiplied Mathf.Deg2Rad) //Yeeeh.... oh no: only for 90 degrees

so, since 2 hours I'm traying to get just the simple/normal sinus return (with stuff like Math.Pow(Mathf.Sin(),-1) and all kinds of combinations because I don't know what to do.....) Could somebody help me, please?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by whydoidoit · Jul 20, 2012 at 04:09 PM

     Mathf.Sin(90 * Mathf.Deg2Rad)
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AyJayKaySoft · Jul 20, 2012 at 04:17 PM 0
Share

yes, but like I wrote in my question it only works from 0° to 90°. $$anonymous$$athf.Sin(180 * $$anonymous$$athf.Deg2Rad) for example doesn't work.

avatar image whydoidoit · Jul 20, 2012 at 04:26 PM 0
Share

Err - it's fine! What values were you expecting?

 0 = 0.000
 10 = 0.174
 20 = 0.342
 30 = 0.500
 40 = 0.643
 50 = 0.766
 60 = 0.866
 70 = 0.940
 80 = 0.985
 90 = 1.000
 100 = 0.985
 110 = 0.940
 120 = 0.866
 130 = 0.766
 140 = 0.643
 150 = 0.500
 160 = 0.342
 170 = 0.174
 180 = 0.000
 190 = -0.174
 200 = -0.342
 210 = -0.500
 220 = -0.643
 230 = -0.766
 240 = -0.866
 250 = -0.940
 260 = -0.985
 270 = -1.000
 280 = -0.985
 290 = -0.940
 300 = -0.866
 310 = -0.766
 320 = -0.643
 330 = -0.500
 340 = -0.342
 350 = -0.174
avatar image AyJayKaySoft · Jul 20, 2012 at 04:31 PM 0
Share

ok, that's a cool answer :D so, right know I saw that there is an E-08 at the end... I just have to round it.... I'm, sorry _

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

radiusX and radiusY ? 1 Answer

How can I make water waves ? 1 Answer

place 8 objects around a target gameObject in a circle ( like a compass ) 3 Answers

What's wrong with this algorithm? 2 Answers

What's wrong with this type? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges