analogue watch ui

This commit is contained in:
minjaesong
2023-09-09 17:58:31 +09:00
parent c5134ffe97
commit 6c9cbcdfd1
8 changed files with 146 additions and 30 deletions

View File

@@ -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...)