Constants .java

com.mojang.math.Constants (class, 9 lines): members: DEG_TO_RAD, RAD_TO_DEG, PI, EPSILON.

com.mojang.mathclass9 linescommon280 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (4)

PI
RAD_TO_DEG
DEG_TO_RAD
EPSILON

Full Source

Constants.java9 lines · Minecraft 26.3 · verbatim
1
package com.mojang.math;
2
3
public class Constants {
4
	public static final float PI = (float) Math.PI;
5
	public static final float RAD_TO_DEG = 180.0F / (float)Math.PI;
6
	public static final float DEG_TO_RAD = (float) (Math.PI / 180.0);
7
	public static final float EPSILON = 1.0E-6F;
8
}
9

Decompiled Minecraft 26.3 source of Constants (com/mojang/math/Constants.java) with Mojang official mappings, stored verbatim on the site.