Class VectorHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.VectorHelper

public class VectorHelper extends Object
A class containing utility methods for Vectors and Matrices
  • Constructor Details

    • VectorHelper

      public VectorHelper()
  • Method Details

    • rotate

      public static double[] rotate(double x, double y, double radians)
    • matrix4FromLocRot

      public static org.joml.Matrix4f matrix4FromLocRot(float xl, float yl, float zl, float xr, float yr, float zr)
    • matrix4FromFloatArray

      public static org.joml.Matrix4f matrix4FromFloatArray(float[] vals)
    • matrix4fFromFloat

      public static org.joml.Matrix4f matrix4fFromFloat(float val)
    • mul

      public static org.joml.Vector4f mul(org.joml.Vector4f target, float factor, org.joml.Vector4f dest)
    • mul

      public static org.joml.Matrix4f mul(org.joml.Matrix4f target, float factor, org.joml.Matrix4f dest)
    • getInverse

      public static org.joml.Vector3f getInverse(org.joml.Vector3f target)
    • Vec3fFromStrings

      public static org.joml.Vector3f Vec3fFromStrings(String x, String y, String z)
    • copyVector4f

      public static org.joml.Vector4f copyVector4f(org.joml.Vector4f src)
    • crossProduct

      public static org.joml.Vector3f crossProduct(org.joml.Vector3f one, org.joml.Vector3f two)