Mantis - Squeak 5.2
Viewing Issue Advanced Details
7872 any minor always 09-25-18 12:41 09-25-18 13:27
Patrickr  
 
normal  
new  
open  
none    
none  
0007872: PolygonMorph>>intersects: uses a non-existant method
Justus Eilers pointed out to me that PolygonMorph>>intersects: calls #intersectsLineFrom:to: which does not exist anywhere in the image. We looked it up in older images (up to 3.8) and could not find it in these either. The method seems to have never existed. Justus wrote the two attached test cases triggering that issue.
 IntersectsTests.1.cs [^] (647 bytes) 09-25-18 12:41
 IntersectsImplementation.1.cs [^] (1,406 bytes) 09-25-18 13:26

Notes
(0014625)
Patrickr   
09-25-18 13:27   
I have also attached a possible solution. The perfect solution would use Line objects but we do not have a class for that currently. Thus I resorted to arrays of points and a copied algorithm from the LineIntersections class. For the next release this should be cleaned up.