11-26-2003, 05:48 AM
How would i ahev line 'A' pivot on point 'B' to touch semicircle 'C'?
Pivot Point
|
11-26-2003, 05:48 AM
How would i ahev line 'A' pivot on point 'B' to touch semicircle 'C'?
11-26-2003, 05:53 AM
for loop use cirlce with radians. or draw part of a circle with cos and sin
11-26-2003, 06:29 AM
Quote:for loop use cirlce with radians. or draw part of a circle with cos and sinhuh?
11-26-2003, 06:35 AM
Code: pi! = atn(1) * 4 when you have a radian (angle from 0 to the circumferance of a unit circle, a unit circle having a radius of one, 2 * pi), a cosine (cos) returns the x length of a line in that direction with a lenght of 1. the sine (sin) returns the y height of that line. So if you multiply that figure by the radius, you will get the x and y components for a line of r length (r being the radius). oh yeah, and for pivoting, just thange angle!, which goes from 0 to 359 (starting from the right and going counter clockwise). Making this value higher will make the line move counter clockwise.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
11-26-2003, 07:00 AM
thanks
11-28-2003, 05:25 PM
if you dint get that this may help
Code: SCREEN 13
11-28-2003, 05:33 PM
That example will draw a large amount of lines from (100,100) to a point on the circle.
Let's see: Code: '$DYNAMIC Done by heart, hope there aren't any bugs in it. And I hope you can do something with it! |
« Next Oldest | Next Newest »
|