new AABBBlock constructor

This commit is contained in:
Marc Baloup 2021-04-24 15:52:09 +02:00
parent 1d72fea8c1
commit 89db9b7a64
2 changed files with 11 additions and 0 deletions

View File

@ -16,5 +16,12 @@
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>

View File

@ -27,6 +27,10 @@ public class AABBBlock implements Iterable<BlockVector> {
this(l1.getBlockX(), l1.getBlockY(), l1.getBlockZ(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ()); this(l1.getBlockX(), l1.getBlockY(), l1.getBlockZ(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ());
} }
public AABBBlock(BlockVector l1, BlockVector l2) {
this(l1.getBlockX(), l1.getBlockY(), l1.getBlockZ(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ());
}
public AABBBlock(int p1x, int p1y, int p1z, int p2x, int p2y, int p2z) { public AABBBlock(int p1x, int p1y, int p1z, int p2x, int p2y, int p2z) {
/* /*
* Prends les points extérieurs permettant de former un bouding box englobant * Prends les points extérieurs permettant de former un bouding box englobant