Java Utililty Methods sin

List of utility methods to do sin

Description

The list of methods to do sin are organized into topic(s).

Method

doublesinDeg(double degrees)
sin Deg
return SIN_TABLE_DEG[(int) (degrees * SIN_TABLE_LENGTH_OVER_360) & 65535];
doublesinDegrees(double angleInDegrees)
sin Degrees
return Math.sin(Math.toRadians(angleInDegrees));
floatsinf(float f)
Uses Math.sin, but returns the result as a float.
return (float) Math.sin(f);
floatsinf(float n)
sinf
return (float) Math.sin(n);