Ported block tracing code to WorldEdit.

This commit is contained in:
sk89q
2011-01-19 01:12:05 -08:00
parent 3e8b2edff9
commit 6f6a82d326
5 changed files with 222 additions and 680 deletions

View File

@@ -532,6 +532,20 @@ public class Vector {
(int)Math.floor(z));
}
/**
* Get a block point from a point.
*
* @param x
* @param y
* @param z
* @return point
*/
public BlockVector toBlockPoint() {
return new BlockVector((int)Math.floor(x),
(int)Math.floor(y),
(int)Math.floor(z));
}
/**
* Checks if another object is equivalent.
*