Answers for "java script cosinus grad"

1

java script cosinus grad

/**
 * Umrechnung vom Bogenmaß [RAD] zu einem Winkelmaß [RAD]
 */
function toDegrees (radians) {
    return radians * (180 / Math.PI);
}

/** 
 * Umrechnung eines Winkels [DEG] in den Bogenmaß [RAD]
 */
function toRadians(degrees) {
    return degrees * (Math.PI / 180);
}
Posted by: Guest on July-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language