_This issue was originally filed by domi...@google.com_
Math already has PI as a constant, it would be trivial to add some utility methods to convert between degrees and radians.
static num degToRad(num deg) => deg * (Math.PI / 180.0);
static num radToDeg(num rad) => rad * (180.0 / Math.PI);
_Added Triaged label._
_This comment was originally written by @austincummings_
Has this been added to the library yet?
_Removed Type-Defect label._
_Added Type-Enhancement label._
We don't have any current plans of adding this to the math library.
The trigonometric functions there all uses radians.
If the need is there, someone could write a package that uses degrees instead, which would be a much more consistent solution.
_Added NotPlanned label._
Degrees are used by many developers to visualise and work with angular values. I believe to include a library to two additional "helper" functions that are expected by most developers seems a bit ridiculous. The other point here is that most trigonometric libraries include this functionality (including android). Important point if we consider we'd like developers to port their libraries to Dart and Flutter.
I'd like to propose that this ticket is reopened and the additions made. I am happy to PR them.
Edit: Please thumbs up the issue not the comment.
I don't know why such helpful methods haven't added yet, it just a bit of code.
Most helpful comment
Degrees are used by many developers to visualise and work with angular values. I believe to include a library to two additional "helper" functions that are expected by most developers seems a bit ridiculous. The other point here is that most trigonometric libraries include this functionality (including android). Important point if we consider we'd like developers to port their libraries to Dart and Flutter.
I'd like to propose that this ticket is reopened and the additions made. I am happy to PR them.
Edit: Please thumbs up the issue not the comment.