Package nexus.model.structs

Examples of nexus.model.structs.Vector3


  public static final int TEST_ITERATIONS = 2; // default is 5, but this can be annoying for dev
  public static Model world;
 
  @BeforeClass
  public static void testSetup() {
    world = new Model(new Camera(new Vector3(0f, 0f, 0f), 0f, 0f, 0f, false));
  }
View Full Code Here


    world = new Model(new Camera(new Vector3(0f, 0f, 0f), 0f, 0f, 0f, false));
  }

  @Test
  public void getBlock() {
    Block block = world.chunks.getBlock(new Vector3(0.5f, 0.5f, 0.5f));
   
    assertEquals(true, new Vector3(0f, 0f, 0f).equals(block.a));
  }
View Full Code Here

    assertEquals(true, new Vector3(0f, 0f, 0f).equals(block.a));
  }
 
  @Test
  public void getBlockNegative() {
    Block block = world.chunks.getBlock(new Vector3(-0.5f, 0.5f, -0.5f));
   
    assertEquals(true, new Vector3(-1f, 0f, -1f).equals(block.a));
  }
View Full Code Here

    assertEquals(true, new Vector3(-1f, 0f, -1f).equals(block.a));
  }
 
  @Test
  public void getBlockOrigin() {
    Block block = world.chunks.getBlock(new Vector3(0f, 0f, 0f));
   
    assertEquals(true, new Vector3(0f, 0f, 0f).equals(block.a));
  }
View Full Code Here

    assertEquals(true, new Vector3(0f, 0f, 0f).equals(block.a));
  }
 
  @Test(expected=IllegalArgumentException.class)
  public void getBlockHigh() {
    world.chunks.getBlock(new Vector3(0f, 100000f, 0f));
  }
View Full Code Here

    world.chunks.getBlock(new Vector3(0f, 100000f, 0f));
  }
 
  @Test(expected=IllegalArgumentException.class)
  public void getBlockLow() {
    world.chunks.getBlock(new Vector3(0f, -1000000f, 0f));
  }
View Full Code Here

    world.chunks.getBlock(new Vector3(0f, -1000000f, 0f));
  }
 
  @Test(expected=IllegalArgumentException.class)
  public void setBlockHigh() {
    world.chunks.setBlock(new Block(new Vector3(0f, 100000f, 0f), 1f, null));
  }
View Full Code Here

    world.chunks.setBlock(new Block(new Vector3(0f, 100000f, 0f), 1f, null));
  }
 
  @Test(expected=IllegalArgumentException.class)
  public void setBlockLow() {
    world.chunks.setBlock(new Block(new Vector3(0f, -1000000f, 0f), 1f, null));
 
View Full Code Here

    world.chunks.setBlock(new Block(new Vector3(0f, -1000000f, 0f), 1f, null));
 
 
  @Test(expected=IllegalArgumentException.class)
  public void setBlockFloat() {
    world.chunks.setBlock(new Block(new Vector3(0f, 0.1f, 0f), 1f, null));
  }
View Full Code Here

    assertEquals(expected, results.size());
  }
 
  @Test
  public void inBoundsBelow() {
    assertEquals(false, world.chunks.inBounds(new Vector3(0f, -1f, 0f)));
  }
View Full Code Here

TOP

Related Classes of nexus.model.structs.Vector3

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.