Stay organized with collections
Save and categorize content based on your preferences.
blockly > utils > math > toRadians
utils.math.toRadians() function
Converts degrees to radians. Copied from Closure's goog.math.toRadians.
Signature:
export declare function toRadians(angleDegrees: number): number;
Parameters
Parameter |
Type |
Description |
angleDegrees |
number |
Angle in degrees. |
Returns:
number
Angle in radians.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `utils.math.toRadians()` function converts an angle from degrees to radians."],["It accepts one argument: `angleDegrees`, which represents the angle in degrees."],["The function returns the equivalent angle in radians."],["This function is based on Closure's `goog.math.toRadians` function."]]],["The `toRadians` function, within the `utils.math` namespace, converts an angle from degrees to radians. It accepts a single parameter, `angleDegrees`, which is a number representing the angle in degrees. The function returns a number representing the equivalent angle in radians. This functionality is based on the `goog.math.toRadians` from the Closure library.\n"]]