Testing for Points
Posted by Paul on July 1, 2006 in Uncategorized |
My had to find a way to test if a point is within a certain convex shape using PHP. He found a function in C++ that did the trick and ported it to PHP. I’m posting it here so that anyone who needs it can find it. Here’s the source code. Bear in mind that I didn’t write this thing, so direct your complaints, comments and suggestions to him. Also, if this thing deletes all your files, kicks your dog or sleeps with your wife, I’m not responsible. That’s what you get with freeware.
Welcome to TF.
Now get back there and reply to your welcome thread!!!