Login  Register

Re: sideOf: logic

Posted by tbrunz on Sep 09, 2020; 5:15pm
URL: https://forum.world.st/sideOf-logic-tp5121532p5121544.html

It just occurred to me: If you have a graphic element, such as a triangle or
rectangle, etc., and you want to know if a point lies inside it or outside
it, you would want a method such as this one.  

But I think you would need to apply it relative to a vertex of the polygon
in question, since it assumes a ray starting at (0@0) to a given point
(i.e., an adjoining vertex).



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html