Package org.cyclops.cyclopscore.helper
Class MatrixHelpers
java.lang.Object
org.cyclops.cyclopscore.helper.MatrixHelpers
Contains helper methods for matrix transformations.
Contains several methods from BuildCraft
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
mirrorY
(float[][] targetArray) Mirror the given box bounds around the Y axisstatic 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.
-
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.
-