MCPcopy
hub / github.com/clientIO/joint / toRad

Function toRad

packages/joint-core/src/g/geometry.helpers.mjs:34–39  ·  view source on GitHub ↗
(deg, over360)

Source from the content-addressed store, hash-verified

32};
33
34export const toRad = function(deg, over360) {
35
36 over360 = over360 || false;
37 deg = over360 ? deg : (deg % 360);
38 return deg * PI / 180;
39};
40
41// Return a random integer from the interval [min,max], inclusive.
42export const random = function(min, max) {

Callers 6

_perpendicularFunction · 0.90
point.mjsFile · 0.90
rect.mjsFile · 0.90
bearingFunction · 0.90
Paper.mjsFile · 0.90
Element.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected