Click to See Complete Forum and Search --> : Relative points
joey o.
Feb 9th, 2000, 12:25 AM
I need to know the method(s) needed to find any given point inclusive of a circle.In other words I want to be able to refer to any point inside a circle as the center and make it behave as so.The circle will be drawn many times and the center must be able to change.I'm going to use this for a spinning sphere whose axis can be changed from user control.Anyone know where to start?
Thanks
joey o
Fox
Feb 16th, 2000, 01:31 AM
Well, your second try was heared ;)
I don't know how you want to do this exactly, but I can give you some hints. Use Sin and Cos to get the coordinates of an angle:
-
Dim A as Single
For A = 0 to 10 Step 0.01
PSet(Sin(A), Cos(A))
Next
-
You don't have to use 10 as maximum and 0.01 for step, I just had no time to look for the exact values. It has something to do with Circle = 2*Pi and 1° = Pi/180.
Hope this helps...
------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.
joey o.
Feb 16th, 2000, 02:38 AM
Thank you,
Thats a lot of help. If anyone could add anything I'd be greatfull.
joey o.
joey o.
Feb 16th, 2000, 11:41 AM
*(just another try)
ron hunter
Feb 16th, 2000, 05:00 PM
Joey,
If you know the initial co-ordinates (x,y,z) of the sphere and its radius (r) then for any point within the sphere (x1,y1,z1) the vector length between (x,y,z) to (x1,y1,z1) must be <=r
give me time and i may remember how to calculate vector lengths!!!!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.