MCPcopy Create free account
hub / github.com/melonjs/melonJS / degToRad

Function degToRad

packages/melonjs/src/math/math.ts:85–87  ·  view source on GitHub ↗
(angle: number)

Source from the content-addressed store, hash-verified

83 * math.degToRad(60); // return 1.0471...
84 */
85export function degToRad(angle: number) {
86 return angle * DEG_TO_RAD;
87}
88
89/**
90 * Converts an angle in radians to an angle in degrees.

Callers 5

buildFlipTransformFunction · 0.90
setTileTransformMethod · 0.90
constructorMethod · 0.90
pixelToTileCoordsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected