Finding points on a circle using only degrees (Sine/Cosine)!
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
This tutorial shows how to find a point on a circle (with any radius), using only the degree of the point. It teaches the use of Sine and Cosine in doing so. A great tutorial if you are going to be manipulating circles!
Original Author: InfraRed
Code
Now, I understand that some people may not know how to use Cosine and Sine to find the coordinates of dots on a circle, so I will explain it to the best of my ability. Here is a quick explanation. Now, you know that coordinates are shown in (X, Y), well, Cosine (Cos) finds the X and Sine (Sin) finds the Y. So really, you could think of Sine and Cosine as (Cosine, Sine). Don't get confused yet, lol, I will explain this further. Now, Cosine can be used to find the coordinates of a certain point by using the degrees of that point. Here is a quick example:
Cosine(Point_Degree) * Radius_Length = The X coordinate of that Point. And:
Sine(Point_Degree) * Radius_Length = The Y coordinate of that Point. Here is an example of finding the (X, Y) of a point with the degree measurement of 100??, and the circle has a radius of 5. To find the X:
Cos(100) * 5,
and to find the Y:
Sin(100) * 5.
Simple enough, right? I hope this little tutorial helps you understand the use of Sine and Cosine in finding the coordinates of a point on a circle.
I've also included my CSS code to demonstrate this tutorial.
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 98 times
Categories
Attachments
CODE_UPLOAD56675102000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 24,202 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.