public class TrigonometricalFunction
extends java.lang.Object
This class will calculate the values of the sine and cosine function in steps of 1 degree where the degree runs from 0 to 359. The tangent function is not calculated.
These class was used for the never realized project from Mr. Timmy Lensch (Hardware developer, Group MDI 1, Building 30).
Modifier and Type | Method and Description |
---|---|
float |
cos(int x)
Returns the cosine function value of x, where x is between 0 and 359.
|
static TrigonometricalFunction |
getInstance()
This method returns the singelton of the trigonometrical function class.
|
float |
sin(int x)
Returns the sine function value of x, where x is between 0 and 359.
|
public static final TrigonometricalFunction getInstance()
public float sin(int x)
x
- The argument of the sine function. An integer value is
specified.public float cos(int x)
x
- The argument of the cosine function. An integer value is
specified.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft