Here you can find the source of degreeSin(double angle)
Parameter | Description |
---|---|
angle | the angle. |
static double degreeSin(double angle)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from www. jav a 2s. co m*/ * Computes sines of an angle in degrees. * * @param angle * the angle. * @return sines of the angle. */ static double degreeSin(double angle) { if (angle == 0) { return 0; } if (angle == 90) { return 1; } if (angle == 180) { return 0; } if (angle == 270) { return -1; } return Math.sin(Math.toRadians(angle)); } }