OutCampaign.org
Jul 1st, 2006

Testing for Points

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

Responses

Welcome to TF. :) Now get back there and reply to your welcome thread!!!

Leave a response

Your response:

Categories