[etoys-dev] x-y plane questions

Ricardo Moran richi.moran at gmail.com
Mon Mar 19 09:59:35 EDT 2012

On Mon, Mar 19, 2012 at 3:38 AM, Scott Wallace <scott.wallace at squeakland.org
> wrote:

> On Mar 18, 2012, at 5:52 PM, Ricardo Moran wrote:
> > I made a couple of changes to the number lines that I would like you to
> check:
> I've looked quickly tonight and hope to have more time tomorrow, but a
> quick reply for now, hoping others will chime in soon.

Great, thanks!

> > * I added two tiles: "transform to pixel" and "transform to graph" (the
> names could be improved but I didn't know how to name them). This tiles
> take a number as a parameter and return it transformed to the other
> coordinate system. It's a general way of using the number lines and I think
> it could be very useful.
> This certainly expands the bounds of what can be done with number-lines.
>  Cool example too :)

Yes, I wanted to do it since one of the first versions of the number lines,
but it wasn't until I attempted to implement the "ask" tile that I learned
how to make these "function" tiles, which are not well supported IMHO.

> Since "transform to pixel" provides a transformation from a
> number-line-based coordinate to a coordinate in the cartesian system of the
> surrounding Playfield, perhaps it could be called "transform to playfield"?
>  Not sure if that's much better, if at all, however.

If the "transform to graph" is an acceptable name, then maybe we could use
"transform from graph" to represent the opposite operation (which is a
little better than "transform to pixel" that doesn't mean anything). But
naming is a very difficult task and not being a native english speaker
doesn't help much...

> If we adopt these new guys, we'll need to provide balloon help of course...

Yes, of course. Being a lazy person I almost never write them and then I
put my native language as an excuse :)

> > * I changed "x on graph" and "y on graph" to take into account the
> object's rotation center. However, I could have messed up with this and it
> could have undesired side effects, so testing would be needed.
> Oh, good idea!  Thank you!
> Good stuff!  The irrepressible Richo - what an asset to the community!



>  -- Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120319/569e74f5/attachment.html>

More information about the etoys-dev mailing list