mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-16 18:54:51 +00:00
Cleaned up directory layout
This commit is contained in:
1 parent
32fa471c44
commit
0a14b64e12
105 files changed
+1
-35
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user