mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-16 18:54:51 +00:00
Added a few more set methods to (Block/Cuboid)Coord
This commit is contained in:
1 parent
9e6ac47eba
commit
16d43f287d
2 files changed
+26
-3
No files matched your search
@@ -71,7 +71,7 @@ public class BlockCoord implements Comparable<BlockCoord>
|
||||
return this;
|
||||
}
|
||||
|
||||
public double mag_()
|
||||
public double mag()
|
||||
{
|
||||
return Math.sqrt(x*x+y*y+z*z);
|
||||
}
|
||||
@@ -177,6 +177,11 @@ public class BlockCoord implements Comparable<BlockCoord>
|
||||
{
|
||||
return set(coord.x, coord.y, coord.z);
|
||||
}
|
||||
|
||||
public BlockCoord set(int[] ia)
|
||||
{
|
||||
return set(ia[0], ia[1], ia[2]);
|
||||
}
|
||||
|
||||
public int toSide()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user