
public abstract class SinCosTable extends Object
| Modifier and Type | Class and Description | 
|---|---|
| private static class  | SinCosTable.FullTableTable that can't exploit much symmetry, because the steps are not divisible
 by 2. | 
| private static class  | SinCosTable.HalfTableTable that exploits just one symmetry, as the number of steps is divisible
 by two. | 
| private static class  | SinCosTable.QuarterTableTable that exploits both symmetries, as the number of steps is divisible by
 four. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected int | stepsNumber of steps. | 
| Modifier | Constructor and Description | 
|---|---|
| private  | SinCosTable(int steps)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract double | cos(int step)Get Cosine by step value. | 
| static SinCosTable | make(int steps)Make a table for the given number of steps. | 
| abstract double | sin(int step)Get Sinus by step value. | 
private SinCosTable(int steps)
steps - Number of steps (ideally, steps % 4 = 0!)public abstract double cos(int step)
step - Step valuepublic abstract double sin(int step)
step - Step valuepublic static SinCosTable make(int steps)
steps - Number of steps