Calculating point on a circle's circumference from angle in C#?

后端 未结 6 1008
故里飘歌
故里飘歌 2020-11-29 03:43

I imagine that this is a simple question, but I\'m getting some strange results with my current code and I don\'t have the math background to fully understand why. My goal

6条回答
  •  余生分开走
    2020-11-29 03:52

    Without more information on the exact errors it's hard to tell what's wrong. The equations look right and should work. Are you sure the angles you are passing in are correct for angles > 90 degrees? The only other thing I could think of would be that you're multiplying distance (an int) by the result of Math.sin (double) but that shouldn't really be an issue.

提交回复
热议问题