Object angle is return negative value ? #411

Cyriltra opened this Issue Feb 5, 2013 · 4 comments


None yet
4 participants

Cyriltra commented Feb 5, 2013


I'm currently developping a set of js controls to interact with objects and I realize the angle property of the selected object is returning values roughly between -90 to 270 (at least with FF), is it expected ?
0 to -90 is obtained when rotating counter clockwise
0 to 270 is obtained when rotating clockwise

From user point of view, I think it makes more sens to return values from 0 to 369 (clockwise)

i was also surprised by this behavior. Indeed 0 to 360 would make more sense.

Also sometimes, the negative values from 0 to -90 are not set and instead i obtain 300, 330, 350, etc angles.

I'm still in the process of identifying how to reproduce that.

hmm for the second part of my comment it was caused by my code so nevermind.

Still 0 to 360 will be clearer.

Is there any explanation for this? Was able to get around it for my use case but seems odd. Mostly just curious.


kangax commented Jul 4, 2013

Fixed in be72f68

@kangax kangax closed this Jul 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment