Interface KMath


public interface KMath
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Lazy<org.joml.Vector2ic[]>
     
    static final net.minecraft.world.phys.Vec3
     
    static final List<net.minecraft.world.phys.AABB>
     
    static final float
     
    static final float
     
    static final float
     
    static final float
     
    static final float
     
    static final float
     
    static final double
     
    static final net.minecraft.world.phys.Vec3
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static void
    bezier(float t, float x1, float y1, float x2, float y2, org.joml.Vector2f to)
     
    static float
    bezierAxis(float t, float p1, float p2)
     
    static org.joml.Vector2i
    calculateSpiral(int index, org.joml.Vector2i out)
     
    static int
    ceil(double value)
     
    static int
    ceil(float value)
     
    static double
    clerp(double value, double min, double max)
     
    static float
    clerp(float value, float min, float max)
     
    static double
    curve(double t, double p1x, double p2x, double p3x)
     
    static double
    dist(double x0, double y0, double x1, double y1)
     
    static double
    dist(double x0, double y0, double z0, double x1, double y1, double z1)
     
    static float
    dist(float x0, float y0, float x1, float y1)
     
    static float
    dist(float x0, float y0, float z0, float x1, float y1, float z1)
     
    static int
    floor(double value)
     
    static int
    floor(float value)
     
    static String
    format(double value)
     
    static String
    format(float value)
     
    static String
    format(net.minecraft.core.BlockPos pos)
     
    static String
    format(net.minecraft.core.Position pos)
     
    static String
    format(org.joml.Vector3fc pos)
     
    static String
    format(org.joml.Vector4fc pos)
     
    static org.joml.Vector2ic
    getSpiral(int index)
     
    static boolean
    isIdentity(org.joml.Matrix3fc m)
     
    static boolean
    isIdentity(org.joml.Matrix4fc m)
     
    static long
    lceil(double value)
     
    static double
    lerp(double delta, double range)
     
    static double
    lerp(double delta, double min, double max)
     
    static float
    lerp(float delta, float range)
     
    static float
    lerp(float delta, float min, float max)
     
    static long
    lfloor(double value)
     
    static float
    linearizedBezierY(float t, float x1, float y1, float x2, float y2)
     
    static float
    linearizedBezierY(float t, float x1, float y1, float x2, float y2, int precision1, int precision2)
     
    static double
    map(double value, double min0, double max0, double min1, double max1)
     
    static float
    map(float value, float min0, float max0, float min1, float max1)
     
    static double
    max(double a, double b, double c, double d, double e, double f, double g, double h)
     
    static float
    max(float a, float b, float c, float d, float e, float f, float g, float h)
     
    static net.minecraft.core.BlockPos
    max(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b)
     
    static double
    min(double a, double b, double c, double d, double e, double f, double g, double h)
     
    static float
    min(float a, float b, float c, float d, float e, float f, float g, float h)
     
    static net.minecraft.core.BlockPos
    min(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b)
     
    static String
    shortFormat(double value)
     
    static String
    shortFormat(float value)
     
    static double
    smootherstep(double t)
     
    static float
    smootherstep(float t)
     
    static double
    smoothstep(double t)
     
    static float
    smoothstep(float t)
     
    static double
    sq(double t)
     
    static float
    sq(float t)
     
    static net.minecraft.nbt.NumericTag
    tag(float num)
     
    static net.minecraft.world.phys.Vec3
    vec3(double v)
     
    static net.minecraft.world.phys.Vec3
    vec3(double x, double y, double z)
     
    static String
    veryShortFormat(double value)
     
    static String
    veryShortFormat(float value)
     
  • Field Details

  • Method Details

    • vec3

      static net.minecraft.world.phys.Vec3 vec3(double x, double y, double z)
    • vec3

      static net.minecraft.world.phys.Vec3 vec3(double v)
    • veryShortFormat

      static String veryShortFormat(float value)
    • veryShortFormat

      static String veryShortFormat(double value)
    • shortFormat

      static String shortFormat(float value)
    • shortFormat

      static String shortFormat(double value)
    • format

      static String format(float value)
    • format

      static String format(double value)
    • format

      static String format(net.minecraft.core.BlockPos pos)
    • format

      static String format(net.minecraft.core.Position pos)
    • format

      static String format(org.joml.Vector3fc pos)
    • format

      static String format(org.joml.Vector4fc pos)
    • tag

      static net.minecraft.nbt.NumericTag tag(float num)
    • sq

      static double sq(double t)
    • sq

      static float sq(float t)
    • floor

      static int floor(double value)
    • lfloor

      static long lfloor(double value)
    • floor

      static int floor(float value)
    • ceil

      static int ceil(double value)
    • lceil

      static long lceil(double value)
    • ceil

      static int ceil(float value)
    • lerp

      static double lerp(double delta, double min, double max)
    • lerp

      static float lerp(float delta, float min, float max)
    • lerp

      static double lerp(double delta, double range)
    • lerp

      static float lerp(float delta, float range)
    • clerp

      static double clerp(double value, double min, double max)
    • clerp

      static float clerp(float value, float min, float max)
    • map

      static double map(double value, double min0, double max0, double min1, double max1)
    • map

      static float map(float value, float min0, float max0, float min1, float max1)
    • smoothstep

      static double smoothstep(double t)
    • smoothstep

      static float smoothstep(float t)
    • smootherstep

      static double smootherstep(double t)
    • smootherstep

      static float smootherstep(float t)
    • curve

      static double curve(double t, double p1x, double p2x, double p3x)
    • min

      static double min(double a, double b, double c, double d, double e, double f, double g, double h)
    • max

      static double max(double a, double b, double c, double d, double e, double f, double g, double h)
    • min

      static float min(float a, float b, float c, float d, float e, float f, float g, float h)
    • max

      static float max(float a, float b, float c, float d, float e, float f, float g, float h)
    • min

      static net.minecraft.core.BlockPos min(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b)
    • max

      static net.minecraft.core.BlockPos max(net.minecraft.core.BlockPos a, net.minecraft.core.BlockPos b)
    • isIdentity

      static boolean isIdentity(org.joml.Matrix3fc m)
    • isIdentity

      static boolean isIdentity(org.joml.Matrix4fc m)
    • dist

      static double dist(double x0, double y0, double z0, double x1, double y1, double z1)
    • dist

      static double dist(double x0, double y0, double x1, double y1)
    • dist

      static float dist(float x0, float y0, float z0, float x1, float y1, float z1)
    • dist

      static float dist(float x0, float y0, float x1, float y1)
    • getSpiral

      static org.joml.Vector2ic getSpiral(int index)
    • calculateSpiral

      static org.joml.Vector2i calculateSpiral(int index, org.joml.Vector2i out)
    • bezier

      static void bezier(float t, float x1, float y1, float x2, float y2, org.joml.Vector2f to)
    • bezierAxis

      static float bezierAxis(float t, float p1, float p2)
    • linearizedBezierY

      static float linearizedBezierY(float t, float x1, float y1, float x2, float y2, int precision1, int precision2)
    • linearizedBezierY

      static float linearizedBezierY(float t, float x1, float y1, float x2, float y2)