Class TransformationHelper

java.lang.Object
io.github.vampirestudios.vampirelib.client.TransformationHelper

public final class TransformationHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    epsilonEquals(com.mojang.math.Vector4f v1, com.mojang.math.Vector4f v2, float epsilon)
     
    static com.mojang.math.Vector3f
    lerp(com.mojang.math.Vector3f from, com.mojang.math.Vector3f to, float progress)
     
    static com.mojang.math.Quaternion
    makeQuaternion(float[] values)
     
    static com.mojang.math.Quaternion
    quatFromXYZ(float[] xyz, boolean degrees)
     
    static com.mojang.math.Quaternion
    quatFromXYZ(com.mojang.math.Vector3f xyz, boolean degrees)
     
    static com.mojang.math.Quaternion
    slerp(com.mojang.math.Quaternion v0, com.mojang.math.Quaternion v1, float t)
     
    static com.mojang.math.Transformation
    slerp(com.mojang.math.Transformation one, com.mojang.math.Transformation that, float progress)
     
    static com.mojang.math.Transformation
    toTransformation(net.minecraft.client.renderer.block.model.ItemTransform transform)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransformationHelper

      public TransformationHelper()
  • Method Details

    • toTransformation

      @Deprecated @Environment(CLIENT) public static com.mojang.math.Transformation toTransformation(net.minecraft.client.renderer.block.model.ItemTransform transform)
      Deprecated.
    • quatFromXYZ

      public static com.mojang.math.Quaternion quatFromXYZ(com.mojang.math.Vector3f xyz, boolean degrees)
    • quatFromXYZ

      public static com.mojang.math.Quaternion quatFromXYZ(float[] xyz, boolean degrees)
    • makeQuaternion

      public static com.mojang.math.Quaternion makeQuaternion(float[] values)
    • lerp

      public static com.mojang.math.Vector3f lerp(com.mojang.math.Vector3f from, com.mojang.math.Vector3f to, float progress)
    • slerp

      public static com.mojang.math.Quaternion slerp(com.mojang.math.Quaternion v0, com.mojang.math.Quaternion v1, float t)
    • slerp

      public static com.mojang.math.Transformation slerp(com.mojang.math.Transformation one, com.mojang.math.Transformation that, float progress)
    • epsilonEquals

      public static boolean epsilonEquals(com.mojang.math.Vector4f v1, com.mojang.math.Vector4f v2, float epsilon)