Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Object angle is return negative value ? #411

Closed
Cyriltra opened this Issue · 4 comments

4 participants

@Cyriltra

Hello,

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)

@fadomire

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.

@fadomire

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

Still 0 to 360 will be clearer.

@tristanoneil

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

@kangax
Owner

Fixed in be72f68

@kangax kangax closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.