本文整理汇总了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;
}