Java Code Examples for com.sk89q.worldedit.Vector#ZERO

The following examples show how to use com.sk89q.worldedit.Vector#ZERO . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PolyhedralRegion.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Clears the region, removing all vertices and triangles.
 */
public void clear() {
    vertices.clear();
    triangles.clear();
    vertexBacklog.clear();

    minimumPoint = null;
    maximumPoint = null;
    centerAccum = Vector.ZERO;
    lastTriangle = null;
}
 
Example 2
Source File: MaskCommands.java    From FastAsyncWorldedit with GNU General Public License v3.0 5 votes vote down vote up
@Command(
        aliases = {"="},
        desc = "expression mask",
        usage = "<expression>",
        min = 1,
        max = 1
)
public Mask expression(Extent extent, String input) throws ExpressionException {
    Expression exp = Expression.compile(input, "x", "y", "z");
    WorldEditExpressionEnvironment env = new WorldEditExpressionEnvironment(extent, Vector.ONE, Vector.ZERO);
    exp.setEnvironment(env);
    return new ExpressionMask(exp);
}
 
Example 3
Source File: EmptyExtent.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
public Vector getMinimumPoint() {
    return Vector.ZERO;
}
 
Example 4
Source File: EmptyExtent.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
public Vector getMaximumPoint() {
    return Vector.ZERO;
}
 
Example 5
Source File: EmptyClipboard.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Region getRegion() {
    return new CuboidRegion(Vector.ZERO, Vector.ZERO);
}
 
Example 6
Source File: EmptyClipboard.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Vector getDimensions() {
    return Vector.ZERO;
}
 
Example 7
Source File: EmptyClipboard.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Vector getOrigin() {
    return Vector.ZERO;
}
 
Example 8
Source File: EmptyClipboard.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Vector getMinimumPoint() {
    return Vector.ZERO;
}
 
Example 9
Source File: EmptyClipboard.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Vector getMaximumPoint() {
    return Vector.ZERO;
}