Initial Commit

This commit is contained in:
Chicken Bones committed 2013-07-16 17:58:02 +10:00
1 parent 397135f687
commit 0f32dd8620
82 files changed
+10693

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
package codechicken.lib.vec;
public class SwapYZ extends VariableTransformation
{
public SwapYZ()
{
super(new Matrix4(
1, 0, 0, 0,
0, 0, 1, 0,
0, 1, 0, 0,
0, 0, 0, 1));
}
@Override
public void apply(Vector3 vec)
{
double vz = vec.z;
vec.z = vec.y;
vec.y = vz;
}
@Override
public Transformation inverse()
{
return this;
}
}