cos looked up in the sin table with the appropriate offset
(float value)
| 48 | * cos looked up in the sin table with the appropriate offset |
| 49 | */ |
| 50 | public static float cos(float value) |
| 51 | { |
| 52 | return fastMath ? SIN_TABLE_FAST[(int)(value * radToIndex + 1024.0F) & 4095] : SIN_TABLE[(int)(value * 10430.378F + 16384.0F) & 65535]; |
| 53 | } |
| 54 | |
| 55 | public static float sqrt_float(float value) |
| 56 | { |
no outgoing calls