The online racing simulator
Searching in All forums
(1 results)
IhmisQla
S2 licensed
Quote from wien :I'm just in favour of calling a spade a spade and sin and cos are standalone functions. They just are. They should not be methods of a class, static or otherwise.

Not necessarily:

interface TrigonometryProvider {
public double sin(double a);
public double cos(double a);
...
}

class Math implements TrigonometryProvider, CalculusProvider, ... {
... loads of math stuff ...
}

FGED GREDG RDFGDR GSFDG