cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Sin and Cos Question with a circle
Sin and Cos Question with a circle
Nov 30, 2008 at 4:20pm UTC
Mythios
(1058)
Sorry for asking the whole question here but this is confusing me as i know its a small answer
Describe how to use sin and cos to calculate the points on a unit circle. A unit circle is a circle with a radius of 1.
Nov 30, 2008 at 4:33pm UTC
jsmith
(5804)
y = r sin( A ) and
x = r cos( A ), where A = the angle
IIRC.
If r == 1, then all you need to do is write a for loop that goes through all angles (to whatever granularity you want) and compute y = sin A and x = cos A.
Nov 30, 2008 at 4:39pm UTC
Mythios
(1058)
Awesome, cheers man :D
Topic archived. No new replies allowed.