Package sk.fiit.jim.math

Examples of sk.fiit.jim.math.Vector3D.crossProduct()


    Vector3D b = cartesian(1, 0, 0);
    assertEquals(a.dotProduct(a), 1.0, .01);
    assertEquals(a.dotProduct(b), 0.0, .01);
    assertThat(a.crossProduct(b), is(equalTo(cartesian(0, 0, -1))));
    assertThat(a.crossProduct(a), is(equalTo(cartesian(0, 0, 0))));
    assertThat(b.crossProduct(a), is(equalTo(cartesian(0, 0, 1))));
    }
  }
 
  @Test
  public void setters(){
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.