Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
}
 
PREVIOUS NEXT
Tagged: #java #script #cosinus #grad
ADD COMMENT
Topic
Name
8+7 =