-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use degrees instead of radians. #34
Comments
Thanks for this feature request. Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted. IMO radians is what native JS uses, so its more straightforward to use them rather than introducing a different unit. That said, yeah, there are a lot of times where I'm already thinking in degrees |
So rather than have it automatically convert it, is it possible to have it a global variable setting? Of course I can use my own converter - just a nice-to-have! :) |
remember a simple function will do the job: |
@Neon22 Yes I use that already - it would just be nice to be able to set it globally so I don't have to keep manually passing values to it. I'm lazy! |
what about a toRadians function as member of Zdog?
Edit: I submitted a PR for this feature request #47 |
I think it's more familiar and user friendly to rotate elements using degrees.
Is it possible to set an optional global variable like
Zdog.useDegrees = true;
.Then any value passed to a
rotate
property is converted to degrees (currently I have to use my own conversion function).The text was updated successfully, but these errors were encountered: