Examples of APrimitiveVector


Examples of mikera.vectorz.impl.APrimitiveVector

    new TestArrays().testAdd(Vector1.of(1.0));
  }
 
  @Test
  public void testCompoenetGetters() {
    APrimitiveVector v1=Vector1.of(1);
    APrimitiveVector v2=Vector2.of(2,3);
    APrimitiveVector v3=Vector3.of(4,5,6);
    APrimitiveVector v4=Vector4.of(7,8,9,10);
   
    assertEquals(1,v1.getX(),0.0);
    assertEquals(3,v2.getY(),0.0);
    assertEquals(6,v3.getZ(),0.0);
    assertEquals(10,v4.getT(),0.0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.