use of buildcraft.lib.misc.data.Box in project BuildCraft by BuildCraft.
the class BoxTester method testCenter.
@Test
public void testCenter() {
Box box = new Box(MIN, MAX);
Assert.assertEquals(CENTER, box.center());
}
use of buildcraft.lib.misc.data.Box in project BuildCraft by BuildCraft.
the class BoxTester method testIntersection2.
@Test
public void testIntersection2() {
Box box1 = new Box(new BlockPos(0, 0, 0), new BlockPos(2, 2, 2));
Box box2 = new Box(new BlockPos(0, 0, 0), new BlockPos(3, 3, 3));
Box inter = new Box(new BlockPos(0, 0, 0), new BlockPos(2, 2, 2));
Assert.assertEquals(inter, box1.getIntersect(box2));
Assert.assertEquals(inter, box2.getIntersect(box1));
}
use of buildcraft.lib.misc.data.Box in project BuildCraft by BuildCraft.
the class BoxTester method testMin.
@Test
public void testMin() {
Box box = new Box(MIN, MAX);
Assert.assertEquals(MIN, box.min());
}
use of buildcraft.lib.misc.data.Box in project BuildCraft by BuildCraft.
the class BoxTester method testIntersection3.
@Test
public void testIntersection3() {
Box box1 = new Box(new BlockPos(1, 1, 1), new BlockPos(2, 2, 2));
Box box2 = new Box(new BlockPos(0, 0, 0), new BlockPos(1, 1, 1));
Box inter = new Box(new BlockPos(1, 1, 1), new BlockPos(1, 1, 1));
Assert.assertEquals(inter, box1.getIntersect(box2));
Assert.assertEquals(inter, box2.getIntersect(box1));
}
use of buildcraft.lib.misc.data.Box in project BuildCraft by BuildCraft.
the class BoxTester method testSize.
@Test
public void testSize() {
Box box = new Box(MIN, MAX);
Assert.assertEquals(SIZE, box.size());
}
Aggregations