Package zombie.core.math
Class PZMath
java.lang.Object
zombie.core.math.PZMath
public final class PZMath
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PZMath.SideOfLine
-
Field Summary
Fields Modifier and Type Field Description static float
degToRads
static long
microsToNanos
static long
millisToMicros
static float
PI
static float
PI2
static float
radToDegs
static long
secondsToMillis
static long
secondsToNanos
-
Constructor Summary
Constructors Constructor Description PZMath()
-
Method Summary
Modifier and Type Method Description static float
abs(float float1)
static float
almostIdentity(float float1, float float2, float float3)
static float
almostUnitIdentity(float float1)
static float
c_lerp(float float1, float float2, float float3)
static boolean
canParseFloat(java.lang.String string)
static float
ceil(float float1)
static float
clamp(float float1, float float2, float float3)
static int
clamp(int int1, int int2, int int3)
static long
clamp(long long1, long long2, long long3)
static float
clamp_01(float float1)
static org.lwjgl.util.vector.Matrix4f
convertMatrix(Matrix4f matrix4f, org.lwjgl.util.vector.Matrix4f matrix4f2)
static Matrix4f
convertMatrix(org.lwjgl.util.vector.Matrix4f matrix4f, Matrix4f matrix4f2)
static float
degToRad(float float1)
static boolean
equal(float float1, float float2)
static boolean
equal(float float1, float float2, float float3)
static float
floor(float float1)
static float
frac(float float1)
static float
gain(float float1, float float2)
static float
getClosestAngle(float float1, float float2)
static float
getClosestAngleDegrees(float float1, float float2)
static float
lerp(float float1, float float2, float float3)
static org.lwjgl.util.vector.Vector3f
lerp(org.lwjgl.util.vector.Vector3f vector3f, org.lwjgl.util.vector.Vector3f vector3f2, org.lwjgl.util.vector.Vector3f vector3f3, float float1)
static Vector2
lerp(Vector2 vector2, Vector2 vector22, Vector2 vector23, float float1)
static float
lerpAngle(float float1, float float2, float float3)
static float
lerpFunc_EaseInQuad(float float1)
static float
lerpFunc_EaseOutInQuad(float float1)
static float
lerpFunc_EaseOutQuad(float float1)
static float
max(float float1, float float2)
static int
max(int int1, int int2)
static float
min(float float1, float float2)
static int
min(int int1, int int2)
static float
radToDeg(float float1)
static float
roundFromEdges(float float1)
static int
roundToInt(float float1)
static float
roundToIntPlus05(float float1)
static float
roundToNearest(float float1)
static int
sign(float float1)
static org.lwjgl.util.vector.Quaternion
slerp(org.lwjgl.util.vector.Quaternion quaternion, org.lwjgl.util.vector.Quaternion quaternion2, org.lwjgl.util.vector.Quaternion quaternion3, float float1)
static float
sqrt(float float1)
static float
step(float float1, float float2, float float3)
static PZMath.SideOfLine
testSideOfLine(float float1, float float2, float float3, float float4, float float5, float float6)
static float
tryParseFloat(java.lang.String string, float float1)
static int
tryParseInt(java.lang.String string, int int1)
static float
wrap(float float1, float float2)
static float
wrap(float float1, float float2, float float3)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PI
public static final float PI- See Also:
- Constant Field Values
-
PI2
public static final float PI2- See Also:
- Constant Field Values
-
degToRads
public static final float degToRads- See Also:
- Constant Field Values
-
radToDegs
public static final float radToDegs- See Also:
- Constant Field Values
-
microsToNanos
public static final long microsToNanos- See Also:
- Constant Field Values
-
millisToMicros
public static final long millisToMicros- See Also:
- Constant Field Values
-
secondsToMillis
public static final long secondsToMillis- See Also:
- Constant Field Values
-
secondsToNanos
public static long secondsToNanos
-
-
Constructor Details
-
PZMath
public PZMath()
-
-
Method Details
-
almostUnitIdentity
public static float almostUnitIdentity(float float1) -
almostIdentity
public static float almostIdentity(float float1, float float2, float float3) -
gain
public static float gain(float float1, float float2) -
clamp
public static float clamp(float float1, float float2, float float3) -
clamp
public static long clamp(long long1, long long2, long long3) -
clamp
public static int clamp(int int1, int int2, int int3) -
clamp_01
public static float clamp_01(float float1) -
lerp
public static float lerp(float float1, float float2, float float3) -
lerpAngle
public static float lerpAngle(float float1, float float2, float float3) -
lerp
public static org.lwjgl.util.vector.Vector3f lerp(org.lwjgl.util.vector.Vector3f vector3f, org.lwjgl.util.vector.Vector3f vector3f2, org.lwjgl.util.vector.Vector3f vector3f3, float float1) -
lerp
-
c_lerp
public static float c_lerp(float float1, float float2, float float3) -
slerp
public static org.lwjgl.util.vector.Quaternion slerp(org.lwjgl.util.vector.Quaternion quaternion, org.lwjgl.util.vector.Quaternion quaternion2, org.lwjgl.util.vector.Quaternion quaternion3, float float1) -
sqrt
public static float sqrt(float float1) -
lerpFunc_EaseOutQuad
public static float lerpFunc_EaseOutQuad(float float1) -
lerpFunc_EaseInQuad
public static float lerpFunc_EaseInQuad(float float1) -
lerpFunc_EaseOutInQuad
public static float lerpFunc_EaseOutInQuad(float float1) -
tryParseFloat
public static float tryParseFloat(java.lang.String string, float float1) -
canParseFloat
public static boolean canParseFloat(java.lang.String string) -
tryParseInt
public static int tryParseInt(java.lang.String string, int int1) -
degToRad
public static float degToRad(float float1) -
radToDeg
public static float radToDeg(float float1) -
getClosestAngle
public static float getClosestAngle(float float1, float float2) -
getClosestAngleDegrees
public static float getClosestAngleDegrees(float float1, float float2) -
sign
public static int sign(float float1) -
floor
public static float floor(float float1) -
ceil
public static float ceil(float float1) -
frac
public static float frac(float float1) -
wrap
public static float wrap(float float1, float float2) -
wrap
public static float wrap(float float1, float float2, float float3) -
max
public static float max(float float1, float float2) -
max
public static int max(int int1, int int2) -
min
public static float min(float float1, float float2) -
min
public static int min(int int1, int int2) -
abs
public static float abs(float float1) -
equal
public static boolean equal(float float1, float float2) -
equal
public static boolean equal(float float1, float float2, float float3) -
convertMatrix
public static org.lwjgl.util.vector.Matrix4f convertMatrix(Matrix4f matrix4f, org.lwjgl.util.vector.Matrix4f matrix4f2) -
convertMatrix
-
step
public static float step(float float1, float float2, float float3) -
testSideOfLine
public static PZMath.SideOfLine testSideOfLine(float float1, float float2, float float3, float float4, float float5, float float6) -
roundToNearest
public static float roundToNearest(float float1) -
roundToInt
public static int roundToInt(float float1) -
roundToIntPlus05
public static float roundToIntPlus05(float float1) -
roundFromEdges
public static float roundFromEdges(float float1)
-