#define Near( a, b ) ( COMPARE(a[0],b[0]) && COMPARE( a[1], b[1] ) && COMPARE( a[2], b[2] ) )
compares two vectors to see if they are near each other. Boundary conditions exist around 0, when the values are on opposite sides, but it's pretty good.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|