mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 07:47:47 +00:00
33 lines
586 B
Java
33 lines
586 B
Java
package codechicken.lib.vec;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
public abstract class VariableTransformation extends Transformation
|
|
{
|
|
public Matrix4 mat;
|
|
|
|
public VariableTransformation(Matrix4 mat)
|
|
{
|
|
this.mat = mat;
|
|
}
|
|
|
|
@Override
|
|
public void applyN(Vector3 normal)
|
|
{
|
|
apply(normal);
|
|
}
|
|
|
|
@Override
|
|
public void apply(Matrix4 mat)
|
|
{
|
|
mat.multiply(this.mat);
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public void glApply()
|
|
{
|
|
mat.glApply();
|
|
}
|
|
} |