MCPcopy
hub / github.com/razorjack/quicksand / toRadian

Function toRadian

jquery.transform2d.js:532–538  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

530
531// converts an angle string in any unit to a radian Float
532function toRadian(value) {
533 return ~value.indexOf("deg") ?
534 parseInt(value,10) * (Math.PI * 2 / 360):
535 ~value.indexOf("grad") ?
536 parseInt(value,10) * (Math.PI/200):
537 parseFloat(value);
538}
539
540// Converts "matrix(A,B,C,D,X,Y)" to [A,B,C,D,X,Y]
541function toArray(matrix) {

Callers 2

matrixFunction · 0.85
parseFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…