Nyad
02-27-2008, 09:48 AM
Hi
I am trying to test intersection between two quads without using the usual method.
I want to just do this
test if each vert in quad2 lies between verts of quad1
like:
sort q1x values into ascending order
I then test between the smallest and the largest value of x with the point
ie
if smallx <= quad2x and largex >= quad2x
and I do the same for my y values.
I am using this to test per quad on my objects made up of quads
to see if they collide, this will be done for many arbitrary quads.
The formula I am hoping is working is:
lim E = 0
E->0
where E is my error, so over many quads this will bring about a small error
Will this be faster than traditional methods or will it be way too slow or innacurate?
I am trying to test intersection between two quads without using the usual method.
I want to just do this
test if each vert in quad2 lies between verts of quad1
like:
sort q1x values into ascending order
I then test between the smallest and the largest value of x with the point
ie
if smallx <= quad2x and largex >= quad2x
and I do the same for my y values.
I am using this to test per quad on my objects made up of quads
to see if they collide, this will be done for many arbitrary quads.
The formula I am hoping is working is:
lim E = 0
E->0
where E is my error, so over many quads this will bring about a small error
Will this be faster than traditional methods or will it be way too slow or innacurate?