Package foundry.veil.impl.quasar
Class MathUtil
java.lang.Object
foundry.veil.impl.quasar.MathUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
angle
(org.joml.Vector3f v1, org.joml.Vector3f v2) static float
angleCos
(org.joml.Vector3f v1, org.joml.Vector3f v2) static int
colorFromVec4f
(org.joml.Vector4f color) static org.joml.Vector4f
copyVector4f
(org.joml.Vector4f vector) static org.joml.Vector4f[]
copyVector4fArray
(org.joml.Vector4f[] array) static org.joml.Vector4f
vec4fFromVec3
(net.minecraft.world.phys.Vec3 vec3, float w) static net.minecraft.world.phys.Vec3[]
vec4fToVec3List
(org.joml.Vector4f[] vec4fList)
-
Constructor Details
-
MathUtil
public MathUtil()
-
-
Method Details
-
angleCos
public static float angleCos(org.joml.Vector3f v1, org.joml.Vector3f v2) -
angle
public static float angle(org.joml.Vector3f v1, org.joml.Vector3f v2) -
vec4fFromVec3
public static org.joml.Vector4f vec4fFromVec3(net.minecraft.world.phys.Vec3 vec3, float w) -
copyVector4fArray
public static org.joml.Vector4f[] copyVector4fArray(org.joml.Vector4f[] array) -
copyVector4f
public static org.joml.Vector4f copyVector4f(org.joml.Vector4f vector) -
colorFromVec4f
public static int colorFromVec4f(org.joml.Vector4f color) -
vec4fToVec3List
public static net.minecraft.world.phys.Vec3[] vec4fToVec3List(org.joml.Vector4f[] vec4fList)
-