[Cuis-dev] #isCloserThan:toPoint: on circle

Hilaire Fernandes hilaire at drgeo.eu
Sun Aug 15 03:14:50 PDT 2021


Hi Juan,

I have noted that with a drawn circle[1], so not filled contrary to a 
disc, the detection method in subject respond true when the point is on 
any position *inside* the circle. It should be true only when the circle 
is filled (disc).

Btw, when I insert an halt in the draw method, it freezes the image. You 
fixed this issue previously, may be it is a regression or something else.

Best

Hilaire

[1] Draw as:

DrGCircleMorph>>drawCircleOn: aCanvas
     | center r |
     center _ self drawable worldToMorph: mathItem center.
     r _ self drawable worldToPixel: mathItem radius.
     style isFilled
         ifTrue: [
             aCanvas strokeWidth: style borderWidth color: borderColor 
fillColor: color do: [
                 aCanvas circleCenter: center radius: r] ]
         ifFalse: [
             aCanvas strokeWidth: style borderWidth color: borderColor do: [
                 aCanvas circleCenter: center  radius: r] ]

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210815/ca3c5d53/attachment.htm>


More information about the Cuis-dev mailing list