本文整理匯總了Java中com.sk89q.worldedit.Vector.ZERO屬性的典型用法代碼示例。如果您正苦於以下問題:Java Vector.ZERO屬性的具體用法?Java Vector.ZERO怎麽用?Java Vector.ZERO使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.sk89q.worldedit.Vector
的用法示例。
在下文中一共展示了Vector.ZERO屬性的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: clear
/**
* 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;
}
示例2: expression
@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);
}
示例3: expression
@Command(
aliases = {"="},
desc = "Expression pattern: http://wiki.sk89q.com/wiki/WorldEdit/Expression_syntax",
usage = "<expression>",
min = 1,
max = 1
)
public Pattern expression(Actor actor, LocalSession session, 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 ExpressionPattern(exp);
}
示例4: getMinimumPoint
public Vector getMinimumPoint() {
return Vector.ZERO;
}
示例5: getMaximumPoint
public Vector getMaximumPoint() {
return Vector.ZERO;
}
示例6: getRegion
@Override
public Region getRegion() {
return new CuboidRegion(Vector.ZERO, Vector.ZERO);
}
示例7: getDimensions
@Override
public Vector getDimensions() {
return Vector.ZERO;
}
示例8: getOrigin
@Override
public Vector getOrigin() {
return Vector.ZERO;
}
示例9: getMinimumPoint
@Override
public Vector getMinimumPoint() {
return Vector.ZERO;
}
示例10: getMaximumPoint
@Override
public Vector getMaximumPoint() {
return Vector.ZERO;
}