[squeak-dev] The Inbox: Graphics-ct.419.mcz

Chris Muller asqueaker at gmail.com
Thu Sep 26 01:58:44 UTC 2019


Be careful about using non Integers with Rectangles, too.  As with
Intervals, I think I remember that some of the API will break.

On Fri, Sep 20, 2019 at 12:46 PM <commits at source.squeak.org> wrote:

> A new version of Graphics was added to project The Inbox:
> http://source.squeak.org/inbox/Graphics-ct.419.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-ct.419
> Author: ct
> Time: 20 September 2019, 7:45:53.388726 pm
> UUID: 5deebfce-0321-9645-aebd-0b4bfb428259
> Ancestors: Graphics-nice.417
>
> Add Rectangle>>#pointAtFraction:
>
> Example: [(5 at 5 rect: 10 at 20) pointAtFraction: 0.5 at 1] will give you 7.5 @
> 20.
>
> dep:feat-ol
>
> =============== Diff against Graphics-nice.417 ===============
>
> Item was added:
> + ----- Method: Rectangle>>pointAtFraction: (in category 'rectangle
> functions') -----
> + pointAtFraction: relativePoint
> +
> +       ^ self origin + (self extent * relativePoint)!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190925/8b6f58a2/attachment.html>


More information about the Squeak-dev mailing list