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.world.phys.Vec3 eyes, net.minecraft.world.phys.Vec3 target) doubleclamp(double value, double min, double max) intclamp(int value, int min, int max) net.minecraft.world.phys.Vec3clampToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) net.minecraft.world.phys.Vec3closestPointToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) net.minecraft.world.phys.Vec3crossProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) doubledegreesToRadians(double degrees) doubledistance(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) doubledotProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) doublefastCos(double radians) doublefastSin(double radians) net.minecraft.world.phys.Vec3findClosestPointOnBox(net.minecraft.world.phys.AABB box, net.minecraft.world.phys.Vec3 point) net.minecraft.world.phys.Vec3getBestAimPoint(net.minecraft.world.phys.AABB box) net.minecraft.world.phys.Vec3getDirectionalSpeed(double speed) net.minecraft.world.phys.Vec3getRotationVector(float yaw, float pitch) booleanisPointInBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) doublelerp(double delta, double start, double end) net.minecraft.world.phys.Vec3lerp(double delta, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) floatlerp(float delta, float start, float end) net.minecraft.world.phys.Vec3normalize(net.minecraft.world.phys.Vec3 vector) floatnormalizeAngle(float angle) doubleradiansToDegrees(double radians) net.minecraft.world.phys.Vec3yawToVector(float yaw, double speed)
-
Method Details
-
calculateRotation
float[] calculateRotation(net.minecraft.world.phys.Vec3 eyes, net.minecraft.world.phys.Vec3 target) -
getRotationVector
net.minecraft.world.phys.Vec3 getRotationVector(float yaw, float pitch) -
normalizeAngle
float normalizeAngle(float angle) -
yawToVector
net.minecraft.world.phys.Vec3 yawToVector(float yaw, double speed) -
getDirectionalSpeed
net.minecraft.world.phys.Vec3 getDirectionalSpeed(double speed) -
lerp
double lerp(double delta, double start, double end) -
lerp
float lerp(float delta, float start, float end) -
lerp
net.minecraft.world.phys.Vec3 lerp(double delta, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 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.world.phys.Vec3 clampToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) -
closestPointToBox
net.minecraft.world.phys.Vec3 closestPointToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) -
normalize
net.minecraft.world.phys.Vec3 normalize(net.minecraft.world.phys.Vec3 vector) -
dotProduct
double dotProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) -
crossProduct
net.minecraft.world.phys.Vec3 crossProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) -
distance
double distance(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) -
degreesToRadians
double degreesToRadians(double degrees) -
radiansToDegrees
double radiansToDegrees(double radians) -
angleDifference
double angleDifference(double angle1, double angle2) -
findClosestPointOnBox
net.minecraft.world.phys.Vec3 findClosestPointOnBox(net.minecraft.world.phys.AABB box, net.minecraft.world.phys.Vec3 point) -
getBestAimPoint
net.minecraft.world.phys.Vec3 getBestAimPoint(net.minecraft.world.phys.AABB box) -
isPointInBox
boolean isPointInBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box) -
fastSin
double fastSin(double radians) -
fastCos
double fastCos(double radians)
-