W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2015

[geometry] DOMMatrix: Why degrees instead of radians for rotation?

From: /#!/JoePea <trusktr@gmail.com>
Date: Wed, 30 Dec 2015 23:20:06 -0800
Message-ID: <CAKU1PAXgz+_NCv65DqFiZvrY2vSLtVLv4oGfwf2KB1MDu8mqNQ@mail.gmail.com>
To: public-fx@w3.org
I'm just curious why the spec uses degrees instead of radians for DOMMatrix
rotation methods. Th whole world except for the USA is on the metric system
which uses radians. Plus, radians make more sense and can be easily
described with all of JavaScript's `Math.*` which also use radians, so it
would make sense to use radians in DOMMatrix as well.

If someone really wants to use degrees, they can just use:

function toDegrees (angle) {
  return angle * (180 / Math.PI);

Received on Thursday, 31 December 2015 07:21:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:54 UTC