类 Maths
java.lang.Object
pkg.exoad.poprock.core.math.Maths
-
构造器概要
-
方法概要
修饰符和类型方法说明static float
clampFloat
(float value, float min, float max) static int
clampInt
(int value, int min, int max) static float
degToRad
(float theta) static float
lerp
(float a, float b, float t) static float
piToTau
(float theta) static float
radToDeg
(float theta) static float
tauToPi
(float theta) static long
unsignLong
(long r) static float[]
windowFraction
(float fraction, int width, int height) static float[]
windowFraction
(float fraction, int width, int height, int padding) static float[]
windowFunction1
(int length)
-
构造器详细资料
-
Maths
private Maths()
-
-
方法详细资料
-
unsignLong
public static long unsignLong(long r) -
clampInt
public static int clampInt(int value, int min, int max) -
clampFloat
public static float clampFloat(float value, float min, float max) -
piToTau
public static float piToTau(float theta) -
tauToPi
public static float tauToPi(float theta) -
radToDeg
public static float radToDeg(float theta) -
degToRad
public static float degToRad(float theta) -
lerp
public static float lerp(float a, float b, float t) -
windowFraction
public static float[] windowFraction(float fraction, int width, int height) -
windowFraction
public static float[] windowFraction(float fraction, int width, int height, int padding) -
windowFunction1
public static float[] windowFunction1(int length)
-