當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。