private static class SinCosTable.FullTable extends SinCosTable
Modifier and Type | Field and Description |
---|---|
private double[] |
costable
Data store
|
private double[] |
sintable
Data store
|
steps
Constructor and Description |
---|
SinCosTable.FullTable(int steps)
Constructor for tables with
|
Modifier and Type | Method and Description |
---|---|
double |
cos(int step)
Get Cosine by step value.
|
double |
sin(int step)
Get Sinus by step value.
|
make
private final double[] costable
private final double[] sintable
public SinCosTable.FullTable(int steps)
steps
- public double cos(int step)
cos
in class SinCosTable
step
- Step valuepublic double sin(int step)
sin
in class SinCosTable
step
- Step value