Package physics

Source Code of physics.VectorUtils

package physics;

import javax.vecmath.Vector3d;

public class VectorUtils {

  public static Vector3d getProjection(Vector3d p, Vector3d v){
    Vector3d right= new Vector3d();   
    right.cross(p, v);
    Vector3d projection= new Vector3d();
    projection.cross(right, p);
    return projection;
  }
 
}
TOP

Related Classes of physics.VectorUtils

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.