I try to persist the width,height,rotation,x,y,scaleX and scaleY of a transformed object.
Problem is when I set these values to a fresh object, they wont stick.
The core problem is if I do:
dobj.width=125.5;
dobj.height=125.5;
dobj.rotation=-17.55911975406459;
dobj.x=181.25;
dobj.y=111.4;
dobj.scaleX=0.9999999901252807;
dobj.scaleY=0.9999999901252807;
And then immediately trace these properties, they're not the same:
dobj.width=157.35000000000002;
dobj.height=157.4;
dobj.rotation=-17.53193678694493;
dobj.x=181.2;
dobj.y=111.35;
dobj.scaleX=0.9990430805040824;
dobj.scaleY=0.9990430805040824;
Why is this and how can I set the values to be what I intend?
Best regards
/John