mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Added side function to Cuboid6
This commit is contained in:
1 parent
b1057544a7
commit
ab0713c129
1 file changed
+13
@@ -145,4 +145,17 @@ public class Cuboid6
|
||||
if(min.z > max.z) {temp = min.z; min.z = max.z; max.z = temp;}
|
||||
return this;
|
||||
}
|
||||
|
||||
public double side(int s)
|
||||
{
|
||||
switch(s) {
|
||||
case 0: return min.y;
|
||||
case 1: return max.y;
|
||||
case 2: return min.z;
|
||||
case 3: return max.z;
|
||||
case 4: return min.x;
|
||||
case 5: return max.x;
|
||||
}
|
||||
throw new IndexOutOfBoundsException("Switch Falloff");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user