Hi all 

we have the following method on point and I do not get 

why 

(0@0) sideOf: (100@100)
 >>> #center



sideOf: otherPoint 
        "Returns #left, #right or #center if the otherPoint lies to the left, 
right or on the line given by the vector from 0@0 to self"
        
        
        | side |
        side := (self crossProduct: otherPoint) sign.
        ^ { #right . #center . #left } at: side + 2
--------------------------------------------
Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply via email to