changed drawOutlinedBoundingBox to drawCuboidOutline accepting Cuboid6

Added expand function to Cuboid6
Renamed transform to apply on Cuboid6
This commit is contained in:
Chicken Bones committed 2013-07-30 16:17:40 +10:00
1 parent d6f14e9ab1
commit 16704eb601
2 files changed
+43 -19

No files matched your search

+18
View File
@@ -61,6 +61,18 @@ public class Cuboid6
max.subtract(vec);
return this;
}
public Cuboid6 expand(double d)
{
return expand(new Vector3(d, d, d));
}
public Cuboid6 expand(Vector3 vec)
{
min.sub(vec);
max.add(vec);
return this;
}
public void setBlockBounds(Block block)
{
@@ -123,7 +135,13 @@ public class Cuboid6
return this;
}
@Deprecated
public Cuboid6 transform(Transformation t)
{
return apply(t);
}
public Cuboid6 apply(Transformation t)
{
t.apply(min);
t.apply(max);