public final class MatrixTranformations
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static float[][] |
deepClone(float[][] source)
Clones both dimensions of a float[][]
|
static void |
mirrorY(float[][] targetArray)
Mirrors the array on the Y axis by calculating offsets from 0.5F
|
static void |
rotate(float[][] targetArray)
Shifts the coordinates around effectively rotating something.
|
static void |
transform(float[][] targetArray,
net.minecraftforge.common.util.ForgeDirection direction) |
public static void mirrorY(float[][] targetArray)
targetArray - public static void rotate(float[][] targetArray)
targetArray - the array that should be rotatedpublic static void transform(float[][] targetArray,
net.minecraftforge.common.util.ForgeDirection direction)
targetArray - the array that should be transformeddirection - public static float[][] deepClone(float[][] source)
source - the float[][] to deepClone