Class TransformUtils

java.lang.Object
org.alban098.common.TransformUtils

public final class TransformUtils extends Object
Just a utility class to help with transformation matrix manipulation
  • Field Details

    • NULL_TRANSFORM

      private static final Transform NULL_TRANSFORM
      A constant representing an empty Transform
  • Constructor Details

    • TransformUtils

      private TransformUtils()
      An empty private constructor to block instantiation
  • Method Details

    • getNullTransformBuffer

      public static FloatBuffer getNullTransformBuffer()
      Returns a FloatBuffer containing a transformation matrix that does not change an Entity
      Returns:
      a FloatBuffer containing a transformation matrix that does not change an Entity
    • getRotationZ

      public static float getRotationZ(org.joml.Matrix4f matrix)
      Returns the angle of rotation around the Z axis of a transformation matrix in radians
      Parameters:
      matrix - the matrix to extract from
      Returns:
      the angle of rotation around the Z axis of a transformation matrix in radians