Package org.apache.commons.math.geometry

Examples of org.apache.commons.math.geometry.Vector3D.scalarMultiply()


  }

  public void testScalarProduct() {
    Vector3D v = new Vector3D(1, 2, 3);
    v = v.scalarMultiply(3);
    checkVector(v, 3, 6, 9);

    checkVector(v.scalarMultiply(0.5), 1.5, 3, 4.5);

  }
View Full Code Here


  public void testScalarProduct() {
    Vector3D v = new Vector3D(1, 2, 3);
    v = v.scalarMultiply(3);
    checkVector(v, 3, 6, 9);

    checkVector(v.scalarMultiply(0.5), 1.5, 3, 4.5);

  }

  public void testVectorialProducts() {
    Vector3D v1 = new Vector3D(2, 1, -4);
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.