Results 1 to 5 of 5

Thread: Relative points

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    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

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    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...

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Thank you,
    Thats a lot of help. If anyone could add anything I'd be greatfull.
    joey o.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    *(just another try)

  5. #5
    Junior Member
    Join Date
    Aug 1999
    Location
    scotland
    Posts
    25

    Post

    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!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width