Class MatrixHelpers

java.lang.Object
org.cyclops.cyclopscore.helper.MatrixHelpers

public final class MatrixHelpers extends Object
Contains helper methods for matrix transformations. Contains several methods from BuildCraft
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    mirrorY(float[][] targetArray)
    Mirror the given box bounds around the Y axis
    static void
    rotate(float[][] targetArray)
    Rotate the given box bounds once.
    static void
    transform(float[][] targetArray, net.minecraft.core.Direction direction)
    Transform the given box bounds to the given orientation.

    Methods inherited from class java.lang.Object

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

    • MatrixHelpers

      public MatrixHelpers()
  • Method Details

    • mirrorY

      public static void mirrorY(float[][] targetArray)
      Mirror the given box bounds around the Y axis
      Parameters:
      targetArray - The box bounds to transform.
    • rotate

      public static void rotate(float[][] targetArray)
      Rotate the given box bounds once. Shifts the x to y, y to z and z to x.
      Parameters:
      targetArray - The box bounds to transform.
    • transform

      public static void transform(float[][] targetArray, net.minecraft.core.Direction direction)
      Transform the given box bounds to the given orientation.
      Parameters:
      targetArray - The box bounds to transform.
      direction - The orientation to transform to.