Interface IMath


public interface IMath
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    angleDifference(double angle1, double angle2)
     
    double
    bringCloser(double value, double goal, double increment)
     
    float[]
    calculateRotation(net.minecraft.util.math.Vec3d eyes, net.minecraft.util.math.Vec3d target)
     
    double
    clamp(double value, double min, double max)
     
    int
    clamp(int value, int min, int max)
     
    net.minecraft.util.math.Vec3d
    clampToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box)
     
    net.minecraft.util.math.Vec3d
    closestPointToBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box)
     
    net.minecraft.util.math.Vec3d
    crossProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b)
     
    double
    degreesToRadians(double degrees)
     
    double
    distance(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b)
     
    double
    dotProduct(net.minecraft.util.math.Vec3d a, net.minecraft.util.math.Vec3d b)
     
    double
    fastCos(double radians)
     
    double
    fastSin(double radians)
     
    net.minecraft.util.math.Vec3d
    findClosestPointOnBox(net.minecraft.util.math.Box box, net.minecraft.util.math.Vec3d point)
     
    net.minecraft.util.math.Vec3d
    getBestAimPoint(net.minecraft.util.math.Box box)
     
    net.minecraft.util.math.Vec3d
    getDirectionalSpeed(double speed)
     
    net.minecraft.util.math.Vec3d
    getRotationVector(float yaw, float pitch)
     
    boolean
    isPointInBox(net.minecraft.util.math.Vec3d point, net.minecraft.util.math.Box box)
     
    double
    lerp(double delta, double start, double end)
     
    net.minecraft.util.math.Vec3d
    lerp(double delta, net.minecraft.util.math.Vec3d start, net.minecraft.util.math.Vec3d end)
     
    float
    lerp(float delta, float start, float end)
     
    net.minecraft.util.math.Vec3d
    normalize(net.minecraft.util.math.Vec3d vector)
     
    float
    normalizeAngle(float angle)
     
    double
    radiansToDegrees(double radians)
     
    net.minecraft.util.math.Vec3d
    yawToVector(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)