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

Method sin

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

sin looked up in a table

(float p_76126_0_)

Source from the content-addressed store, hash-verified

40 * sin looked up in a table
41 */
42 public static float sin(float p_76126_0_)
43 {
44 return fastMath ? SIN_TABLE_FAST[(int)(p_76126_0_ * radToIndex) & 4095] : SIN_TABLE[(int)(p_76126_0_ * 10430.378F) & 65535];
45 }
46
47 /**
48 * cos looked up in the sin table with the appropriate offset

Callers 15

getXpOrbColorMethod · 0.95
evalFloatMethod · 0.95
testMethod · 0.95
displayDebugInfoMethod · 0.95
updateRenderInfoMethod · 0.95
hurtCameraEffectMethod · 0.95
setupViewBobbingMethod · 0.95
orientCameraMethod · 0.95
updateFogColorMethod · 0.95
renderFluidMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMethod · 0.76