当前位置: 首页>>代码示例>>Java>>正文


Java Vector.ZERO属性代码示例

本文整理汇总了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;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:13,代码来源:PolyhedralRegion.java

示例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);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:13,代码来源:MaskCommands.java

示例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);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:13,代码来源:PatternCommands.java

示例4: getMinimumPoint

public Vector getMinimumPoint() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:3,代码来源:EmptyExtent.java

示例5: getMaximumPoint

public Vector getMaximumPoint() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:3,代码来源:EmptyExtent.java

示例6: getRegion

@Override
public Region getRegion() {
    return new CuboidRegion(Vector.ZERO, Vector.ZERO);
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:4,代码来源:EmptyClipboard.java

示例7: getDimensions

@Override
public Vector getDimensions() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:4,代码来源:EmptyClipboard.java

示例8: getOrigin

@Override
public Vector getOrigin() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:4,代码来源:EmptyClipboard.java

示例9: getMinimumPoint

@Override
public Vector getMinimumPoint() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:4,代码来源:EmptyClipboard.java

示例10: getMaximumPoint

@Override
public Vector getMaximumPoint() {
    return Vector.ZERO;
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:4,代码来源:EmptyClipboard.java


注:本文中的com.sk89q.worldedit.Vector.ZERO属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。