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.world.phys.Vec3 eyes, net.minecraft.world.phys.Vec3 target)
     
    double
    clamp(double value, double min, double max)
     
    int
    clamp(int value, int min, int max)
     
    net.minecraft.world.phys.Vec3
    clampToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box)
     
    net.minecraft.world.phys.Vec3
    closestPointToBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box)
     
    net.minecraft.world.phys.Vec3
    crossProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b)
     
    double
    degreesToRadians(double degrees)
     
    double
    distance(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b)
     
    double
    dotProduct(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b)
     
    double
    fastCos(double radians)
     
    double
    fastSin(double radians)
     
    net.minecraft.world.phys.Vec3
    findClosestPointOnBox(net.minecraft.world.phys.AABB box, net.minecraft.world.phys.Vec3 point)
     
    net.minecraft.world.phys.Vec3
    getBestAimPoint(net.minecraft.world.phys.AABB box)
     
    net.minecraft.world.phys.Vec3
    getDirectionalSpeed(double speed)
     
    net.minecraft.world.phys.Vec3
    getRotationVector(float yaw, float pitch)
     
    boolean
    isPointInBox(net.minecraft.world.phys.Vec3 point, net.minecraft.world.phys.AABB box)
     
    double
    lerp(double delta, double start, double end)
     
    net.minecraft.world.phys.Vec3
    lerp(double delta, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
     
    float
    lerp(float delta, float start, float end)
     
    net.minecraft.world.phys.Vec3
    normalize(net.minecraft.world.phys.Vec3 vector)
     
    float
    normalizeAngle(float angle)
     
    double
    radiansToDegrees(double radians)
     
    net.minecraft.world.phys.Vec3
    yawToVector(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)