Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Here's a classic article from Nonki:
Small Basic: How to Use Trigonometric Functions
Let's imagine we want to draw an arc.
Assume the center of the arc is located at x = 200, y = 300, and the start angle is a1 = -30 and the end angle = -60.
In mathematics, the y axis goes up. But in Small Basic GraphicsWindow, the y axis goes down. So the sine of an angle becomes the opposite:
Here are the equations:
Read more and get the code here:
Small Basic: How to Use Trigonometric Functions
Big thanks to Nonki and his quality articles through the years!
Have a Small and Basic Thanksgiving (or a big stuffed one!)...
- Turkey Ninja Ed
Comments
Anonymous
November 28, 2015
Here are all Nonki's featured articles: blogs.msdn.com/.../featured+articleAnonymous
November 29, 2015
Special thanks Ed! You did a lot of grammar correction in this article. :->Anonymous
November 30, 2015
Ha! Yes, I'll do a few sometimes. =^)