Package mathvoyage
Class vmath.Trigonometry
java.lang.Object
mathvoyage.vmath.Trigonometry
- Enclosing class:
vmath
Contains functions to calculate trigonometric relations and values for numbers in radian and degree.
- Author:
- Tahsin Islam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleReturns the arc cosine of a number.static doubleReturns the arc cosecant of a number.static doubleReturns the arc cotangent of a number.static doubleReturns the arc secant of a number.static doubleReturns the arc sine of a number.static doubleReturns the arc tangent of a number.static doubleReturns the cosine of an angle given in radian or degree.static doubleReturns the cosecant of an angle given in radian or degree.static doubleReturns the cotangent of an angle given in radian or degree.static doubledegreeToRadian(double angleDegree) Returns the conversion of degree to radian.static doubleradianToDegree(double angleRadian) Returns the conversion of radian to degree.static doubleReturns the secant of an angle given in radian or degree.static doubleReturns the sine of an angle given in radian or degree.static doubleReturns the tangent of an angle given in radian or degree.
-
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
Returns the sine of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The sine of the angle
-
cos
Returns the cosine of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The cosine of the angle
-
tan
Returns the tangent of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The tangent of the angle
-
cot
Returns the cotangent of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The cotangent of the angle
-
sec
Returns the secant of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The secant of the angle
-
cosec
Returns the cosecant of an angle given in radian or degree.- Parameters:
angle- The angleunit- The unit of the angle- Returns:
- The cosecant of the angle
-
arcsin
Returns the arc sine of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc sine of the number
-
arccos
Returns the arc cosine of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc cosine of the number
-
arctan
Returns the arc tangent of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc tangent of the number
-
arccot
Returns the arc cotangent of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc cotangent of the number
-
arcsec
Returns the arc secant of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc secant of the number
-
arccosec
Returns the arc cosecant of a number.- Parameters:
number- The numberunit- The unit of the angle to return- Returns:
- The arc cosecant of the number
-