Package nexus.view.structs

Examples of nexus.view.structs.VertexContainer


    return this.faces[i];
  }
 
  public VertexContainer makeFace(int i) {
    if (i == index.TOP.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.a.x, block.b.y, block.a.z), block.b));
    } else if (i == index.BOTTOM.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.b.x, block.a.y, block.b.z)));
    } else if (i == index.RIGHT.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.b.x, block.a.y, block.a.z), block.b));
    } else if (i == index.LEFT.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.a.x, block.b.y, block.b.z)));
    } else if (i == index.NEAR.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.b.x, block.b.y, block.a.z)));
    } else if (i == index.FAR.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.a.x, block.a.y, block.b.z), block.b));
    } else {
      throw new IllegalArgumentException(i + " is out of range");
    }
  }
View Full Code Here

TOP

Related Classes of nexus.view.structs.VertexContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.