Java Degree Convert to degreeSin(double angle)

Here you can find the source of degreeSin(double angle)

Description

Computes sines of an angle in degrees.

License

Open Source License

Parameter

Parameter Description
angle the angle.

Return

sines of the angle.

Declaration

static double degreeSin(double angle) 

Method Source Code

//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));
    }
}

Related

  1. deg2dms(double deg)
  2. degrees(double d)
  3. degrees2Dist(double degrees, double radius)
  4. degreesDiff(double a1, double a2)
  5. degreesMinSecToDegrees(String position)
  6. degreesToDecimal(String input)
  7. degreesToMetres(double degrees)
  8. degreesToPercent(float n)