Results 1 to 5 of 5

Thread: Perfect circle.

Threaded View

  1. #1

    Thread Starter
    Fanatic Member BlindSniper's Avatar
    Join Date
    Jan 2011
    Location
    South Africa
    Posts
    865

    Perfect circle.

    Hi all,
    I'm writing some code and I need to determine if an array of points is in the shape of a perfect circle( not only the outline all points inside) and this code needs to be rather quick. One method I thought of is I take the average and the mean of all the points. If it is a perfect circle then these two should be equal(or very close to equal), but if it is a malformed circle then they would differ. The problem that i'm having is that my method seems very bad and I think the average and mean would be the same for any shape that is x and y symmetric.

    Any ideas ?
    Last edited by BlindSniper; Jun 8th, 2012 at 08:36 AM.

    Useful CodeBank Entries of mine
    Expand Function
    Code Compiler
    Sudoku Solver
    HotKeyHandler Class

    Read this to get Effective help on VBForums
    Hitchhiker's Guide to Getting Help at VBF

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