
private static class SinCosTable.QuarterTable extends SinCosTable
| Modifier and Type | Field and Description |
|---|---|
private double[] |
costable
Data store
|
private int |
halfsteps
Number of steps div 2
|
private int |
quarsteps
Number of steps div 4
|
steps| Constructor and Description |
|---|
SinCosTable.QuarterTable(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.
|
makeprivate final int quarsteps
private final int halfsteps
private final double[] costable
public SinCosTable.QuarterTable(int steps)
steps - public double cos(int step)
cos in class SinCosTablestep - Step valuepublic double sin(int step)
sin in class SinCosTablestep - Step value