"[GDS|Entropy]" <gds### [at] hotmailcom> wrote in message
> Do you (or anyone) have any ideas on how to perform an efficient inside()
> test on not just a single point, but an entire object?
Addendum: I have been using things of the format:
#if (((vectorArray[i].x <= vectorB.x) & (vectorArray[i].x >= vectorA.x)) &
((vectorArray[i].y <= vectorB.y) & (vectorArray[i].y >= vectorA.y)) &
((vectorArray[i].z <= vectorB.z) & (vectorArray[i].z >= vectorA.z))) etc...
Where vector A and B are min/max extents of object being tested
against...I'm just not sure that this is the best way...
ian
Post a reply to this message
|