mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 04:41:51 +09:00
analogue watch ui
This commit is contained in:
@@ -56,19 +56,19 @@ final public class FastMath {
|
||||
/** The value PI as a float. (180 degrees) */
|
||||
public static final float PI = (float) Math.PI;
|
||||
/** The value 2PI as a float. (360 degrees) */
|
||||
public static final float TWO_PI = 2.0f * PI;
|
||||
public static final float TWO_PI = (float) (2.0 * Math.PI);
|
||||
/** The value PI/2 as a float. (90 degrees) */
|
||||
public static final float HALF_PI = 0.5f * PI;
|
||||
public static final float HALF_PI = (float) (0.5 * Math.PI);
|
||||
/** The value PI/4 as a float. (45 degrees) */
|
||||
public static final float QUARTER_PI = 0.25f * PI;
|
||||
public static final float QUARTER_PI = (float) (0.25 * Math.PI);
|
||||
/** The value 1/PI as a float. */
|
||||
public static final float INV_PI = 1.0f / PI;
|
||||
public static final float INV_PI = (float) (1.0 / Math.PI);
|
||||
/** The value 1/(2PI) as a float. */
|
||||
public static final float INV_TWO_PI = 1.0f / TWO_PI;
|
||||
public static final float INV_TWO_PI = (float) (2.0 / Math.PI);
|
||||
/** A value to multiply a degree value by, to convert it to radians. */
|
||||
public static final float DEG_TO_RAD = PI / 180.0f;
|
||||
public static final float DEG_TO_RAD = (float) (Math.PI / 180.0);
|
||||
/** A value to multiply a radian value by, to convert it to degrees. */
|
||||
public static final float RAD_TO_DEG = 180.0f / PI;
|
||||
public static final float RAD_TO_DEG = (float) (180.0 / Math.PI);
|
||||
|
||||
/**
|
||||
* Returns true if the number is a power of 2 (2,4,8,16...)
|
||||
|
||||
Reference in New Issue
Block a user