Package dev.boze.api.internal.interfaces
Interface IMath
public interface IMath
-
Method Summary
Modifier and TypeMethodDescriptiondoubleangleDifference(double angle1, double angle2) doublebringCloser(double value, double goal, double increment) float[]calculateRotation(net.minecraft.util.math.Vec3d eyes, net.minecraft.util.math.Vec3d target) doubleclamp(double value, double min, double max) intclamp(int value, int min, int max) net.minecraft.util.math.Vec3dclampToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) net.minecraft.util.math.Vec3dclosestPointToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) net.minecraft.util.math.Vec3dcrossProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) doubledegreesToRadians(double degrees) doubledistance(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) doubledotProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) doublefastCos(double radians) doublefastSin(double radians) net.minecraft.util.math.Vec3dfindClosestPointOnBox(net.minecraft.util.math.Box box, net.minecraft.util.math.Vec3d point) net.minecraft.util.math.Vec3dgetBestAimPoint(net.minecraft.util.math.Box box) net.minecraft.util.math.Vec3dgetDirectionalSpeed(double speed) net.minecraft.util.math.Vec3dgetRotationVector(float yaw, float pitch) booleanisPointInBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) doublelerp(double delta, double start, double end) net.minecraft.util.math.Vec3dlerp(double delta, net.minecraft.util.math.Vec3d start, net.minecraft.util.math.Vec3d end) floatlerp(float delta, float start, float end) net.minecraft.util.math.Vec3dnormalize(net.minecraft.util.math.Vec3d vector) floatnormalizeAngle(float angle) doubleradiansToDegrees(double radians) net.minecraft.util.math.Vec3dyawToVector(float yaw, double speed)
-
Method Details
-
calculateRotation
float[] calculateRotation(net.minecraft.util.math.Vec3d eyes, net.minecraft.util.math.Vec3d target) -
getRotationVector
net.minecraft.util.math.Vec3d getRotationVector(float yaw, float pitch) -
normalizeAngle
float normalizeAngle(float angle) -
yawToVector
net.minecraft.util.math.Vec3d yawToVector(float yaw, double speed) -
getDirectionalSpeed
net.minecraft.util.math.Vec3d getDirectionalSpeed(double speed) -
lerp
double lerp(double delta, double start, double end) -
lerp
float lerp(float delta, float start, float end) -
lerp
net.minecraft.util.math.Vec3d lerp(double delta, net.minecraft.util.math.Vec3d start, net.minecraft.util.math.Vec3d end) -
bringCloser
double bringCloser(double value, double goal, double increment) -
clamp
double clamp(double value, double min, double max) -
clamp
int clamp(int value, int min, int max) -
clampToBox
net.minecraft.util.math.Vec3d clampToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) -
closestPointToBox
net.minecraft.util.math.Vec3d closestPointToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) -
normalize
net.minecraft.util.math.Vec3d normalize(net.minecraft.util.math.Vec3d vector) -
dotProduct
double dotProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) -
crossProduct
net.minecraft.util.math.Vec3d crossProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) -
distance
double distance(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b) -
degreesToRadians
double degreesToRadians(double degrees) -
radiansToDegrees
double radiansToDegrees(double radians) -
angleDifference
double angleDifference(double angle1, double angle2) -
findClosestPointOnBox
net.minecraft.util.math.Vec3d findClosestPointOnBox(net.minecraft.util.math.Box box, net.minecraft.util.math.Vec3d point) -
getBestAimPoint
net.minecraft.util.math.Vec3d getBestAimPoint(net.minecraft.util.math.Box box) -
isPointInBox
boolean isPointInBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box) -
fastSin
double fastSin(double radians) -
fastCos
double fastCos(double radians)
-