MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / cos

Method cos

src/main/java/net/minecraft/util/MathHelper.java:50–53  ·  view source on GitHub ↗

cos looked up in the sin table with the appropriate offset

(float value)

Source from the content-addressed store, hash-verified

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 {

Callers 15

evalFloatMethod · 0.95
testMethod · 0.95
displayDebugInfoMethod · 0.95
updateRenderInfoMethod · 0.95
setupViewBobbingMethod · 0.95
orientCameraMethod · 0.95
renderFluidMethod · 0.95
getViewVectorMethod · 0.95
renderSkyMethod · 0.95
func_178100_cMethod · 0.95
func_178104_aMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMethod · 0.76