Class TransformationHelper
java.lang.Object
net.neoforged.neoforge.common.util.TransformationHelper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
epsilonEquals
(org.joml.Vector4f v1, org.joml.Vector4f v2, float epsilon) static org.joml.Vector3f
lerp
(org.joml.Vector3f from, org.joml.Vector3f to, float progress) static org.joml.Quaternionf
makeQuaternion
(float[] values) static org.joml.Quaternionf
quatFromXYZ
(float[] xyz, boolean degrees) static org.joml.Quaternionf
quatFromXYZ
(float x, float y, float z, boolean degrees) static org.joml.Quaternionf
quatFromXYZ
(org.joml.Vector3f xyz, boolean degrees) static Transformation
slerp
(Transformation one, Transformation that, float progress) static org.joml.Quaternionf
slerp
(org.joml.Quaternionfc v0, org.joml.Quaternionfc v1, float t)
-
Field Details
-
THRESHOLD
private static final double THRESHOLD- See Also:
-
-
Constructor Details
-
TransformationHelper
public TransformationHelper()
-
-
Method Details
-
quatFromXYZ
public static org.joml.Quaternionf quatFromXYZ(org.joml.Vector3f xyz, boolean degrees) -
quatFromXYZ
public static org.joml.Quaternionf quatFromXYZ(float[] xyz, boolean degrees) -
quatFromXYZ
public static org.joml.Quaternionf quatFromXYZ(float x, float y, float z, boolean degrees) -
makeQuaternion
public static org.joml.Quaternionf makeQuaternion(float[] values) -
lerp
public static org.joml.Vector3f lerp(org.joml.Vector3f from, org.joml.Vector3f to, float progress) -
slerp
public static org.joml.Quaternionf slerp(org.joml.Quaternionfc v0, org.joml.Quaternionfc v1, float t) -
slerp
-
epsilonEquals
public static boolean epsilonEquals(org.joml.Vector4f v1, org.joml.Vector4f v2, float epsilon)
-