Interface KMath
public interface KMath
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final double -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic doubleapproach(double current, double target, double speed) static doubleapproachDegrees(double current, double target, double speed) static net.minecraft.core.BlockPosblock(double x, double y, double z) static longceil(double value) static doubleclamp(double value, double min, double max) static doubleclampedLerp(double value, double min, double max) static doubledeg(double value) static doubledegreesDifference(double current, double target) static longfloor(double value) static booleanisPowerOfTwo(int value) static doublelerp(double value, double min, double max) static org.joml.Matrix3fm3f()static org.joml.Matrix4fm4f()static doublemap(double value, double min0, double max0, double min1, double max1) static org.joml.Quaternionfquaternion(float x, float y, float z, float w) static doublerad(double value) static doublerotateIfNecessary(double current, double target, double max) static net.minecraft.world.phys.Vec3v3(double x, double y, double z) static org.joml.Vector3dv3d(double x, double y, double z) static org.joml.Vector3fv3f(float x, float y, float z) static org.joml.Vector4fv4f(float x, float y, float z, float w) static doublewrapDegrees(double d)
-
Field Details
-
E
static final double E- See Also:
-
PI
static final double PI- See Also:
-
DEGREES_TO_RADIANS
static final double DEGREES_TO_RADIANS- See Also:
-
RADIANS_TO_DEGREES
static final double RADIANS_TO_DEGREES- See Also:
-
-
Method Details
-
block
static net.minecraft.core.BlockPos block(double x, double y, double z) -
v3
static net.minecraft.world.phys.Vec3 v3(double x, double y, double z) -
v3d
static org.joml.Vector3d v3d(double x, double y, double z) -
v3f
static org.joml.Vector3f v3f(float x, float y, float z) -
v4f
static org.joml.Vector4f v4f(float x, float y, float z, float w) -
m3f
static org.joml.Matrix3f m3f() -
m4f
static org.joml.Matrix4f m4f() -
quaternion
static org.joml.Quaternionf quaternion(float x, float y, float z, float w) -
rad
static double rad(double value) -
deg
static double deg(double value) -
floor
static long floor(double value) -
ceil
static long ceil(double value) -
clamp
static double clamp(double value, double min, double max) -
lerp
static double lerp(double value, double min, double max) -
map
static double map(double value, double min0, double max0, double min1, double max1) -
clampedLerp
static double clampedLerp(double value, double min, double max) -
wrapDegrees
static double wrapDegrees(double d) -
degreesDifference
static double degreesDifference(double current, double target) -
rotateIfNecessary
static double rotateIfNecessary(double current, double target, double max) -
approach
static double approach(double current, double target, double speed) -
approachDegrees
static double approachDegrees(double current, double target, double speed) -
isPowerOfTwo
static boolean isPowerOfTwo(int value)
-