[Cuis-dev] The Cuis book and rotation in chapter 7 + typo
Juan Vuletich
juan at cuis.st
Wed Mar 1 03:16:24 PST 2023
On 2/28/2023 6:20 PM, Hilaire Fernandes via Cuis-dev wrote:
> Barry, Juan,
>
>
>> I felt that for casual playing with Morphs with (for instance) the
>> halos, it was more intuitive to just rotate around the center. Of
>> course, any morph is free to redefine #rotationCenter as appropriate.
>
> Understandable, it will make the rotation a bit strange for boxed
> morphs as windows.
>
> The possibility to set the rotation center, simplify a bit the chapter
> Barry was referring to and makes the exercises 7.3 and 7.4 obsolete. I
> removed them from the book.
>
> Le 26/02/2023 à 11:07, Barry Perryman via Cuis-dev a écrit :
>>
>> It doesn’t look like the information on morph rotation is correct any
>> longer - exercises 7.3 and 7.4 and the associated text around that on
>> page 115.
>>
>> When I rotate any of the example morphs from this chapter - the
>> line/cross, triangle and the rectangle - they all rotate about the
>> centre and not the 0 at 0 point; this includes the triangle, which is
>> fun to see.
>>
>> I’ve had a little dig through the morph handle code - just enough to
>> be potentially wrong - and it seems that if a rotation centre isn’t
>> specified then one is computed to be the middle of the morph bounds.
>
> I have updated the book and removed the unnecessary complications.
>
> Thanks for the report.
>
Thanks!
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
More information about the Cuis-dev
mailing list