Package mathvoyage

Class vmath.Trigonometry

java.lang.Object
mathvoyage.vmath.Trigonometry
Enclosing class:
vmath

public static class vmath.Trigonometry extends Object
Contains functions to calculate trigonometric relations and values for numbers in radian and degree.
Author:
Tahsin Islam
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    arccos(double number, Angle unit)
    Returns the arc cosine of a number.
    static double
    arccosec(double number, Angle unit)
    Returns the arc cosecant of a number.
    static double
    arccot(double number, Angle unit)
    Returns the arc cotangent of a number.
    static double
    arcsec(double number, Angle unit)
    Returns the arc secant of a number.
    static double
    arcsin(double number, Angle unit)
    Returns the arc sine of a number.
    static double
    arctan(double number, Angle unit)
    Returns the arc tangent of a number.
    static double
    cos(double angle, Angle unit)
    Returns the cosine of an angle given in radian or degree.
    static double
    cosec(double angle, Angle unit)
    Returns the cosecant of an angle given in radian or degree.
    static double
    cot(double angle, Angle unit)
    Returns the cotangent of an angle given in radian or degree.
    static double
    degreeToRadian(double angleDegree)
    Returns the conversion of degree to radian.
    static double
    radianToDegree(double angleRadian)
    Returns the conversion of radian to degree.
    static double
    sec(double angle, Angle unit)
    Returns the secant of an angle given in radian or degree.
    static double
    sin(double angle, Angle unit)
    Returns the sine of an angle given in radian or degree.
    static double
    tan(double angle, Angle unit)
    Returns the tangent of an angle given in radian or degree.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Trigonometry

      public Trigonometry()
  • Method Details

    • degreeToRadian

      public static double degreeToRadian(double angleDegree)
      Returns the conversion of degree to radian.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The angle in radian
    • radianToDegree

      public static double radianToDegree(double angleRadian)
      Returns the conversion of radian to degree.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The angle in degree
    • sin

      public static double sin(double angle, Angle unit)
      Returns the sine of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The sine of the angle
    • cos

      public static double cos(double angle, Angle unit)
      Returns the cosine of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The cosine of the angle
    • tan

      public static double tan(double angle, Angle unit)
      Returns the tangent of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The tangent of the angle
    • cot

      public static double cot(double angle, Angle unit)
      Returns the cotangent of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The cotangent of the angle
    • sec

      public static double sec(double angle, Angle unit)
      Returns the secant of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The secant of the angle
    • cosec

      public static double cosec(double angle, Angle unit)
      Returns the cosecant of an angle given in radian or degree.
      Parameters:
      angle - The angle
      unit - The unit of the angle
      Returns:
      The cosecant of the angle
    • arcsin

      public static double arcsin(double number, Angle unit)
      Returns the arc sine of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc sine of the number
    • arccos

      public static double arccos(double number, Angle unit)
      Returns the arc cosine of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc cosine of the number
    • arctan

      public static double arctan(double number, Angle unit)
      Returns the arc tangent of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc tangent of the number
    • arccot

      public static double arccot(double number, Angle unit)
      Returns the arc cotangent of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc cotangent of the number
    • arcsec

      public static double arcsec(double number, Angle unit)
      Returns the arc secant of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc secant of the number
    • arccosec

      public static double arccosec(double number, Angle unit)
      Returns the arc cosecant of a number.
      Parameters:
      number - The number
      unit - The unit of the angle to return
      Returns:
      The arc cosecant of the number