Just looking for help from a second eye on this bug. Basically, I am still in the process of writing my intersects method and I have gotten somewhere since I got sent the project with the ‘Segment’ and ‘Point’ classes. So thank you very much to whoever that person was that helped. I cannot seem to track this person’s name down but this person was very helpful.
I seem to have gotten the line intersection part of the method to work. This is basically where in my method, I need to detect whether any of the points in one rectangle are contained within another. For some reason, the contains method returns true when it is not suppose to.
So for debugging I tried this code:
if item1.Contains(5, 5) then msgbox str(item1.X) end if
The strange thing (in my opinion) with this, is that the msgbox shows a number that is considerably higher than 5. The shape has no rotation AFAIK. If item1 is not even positioned at 5, 5 or lower values then how could this possibly return true?
I might have gotten it wrong.