Package org.rascalmpl.library.vis.util.vector

Examples of org.rascalmpl.library.vis.util.vector.Vector2D.normalize()


   
    resultForce = resultForce.add(repulsiveForceWall(new Vector2D(x, 0)));
    resultForce = resultForce.add(repulsiveForceWall(new Vector2D(x, G.minSize.getY())));

    // we only need the impulse
    return resultForce.normalize();
  }

  /**
   * Compute the random force.
   * We need a random impulse [-RAND_CONSTANT, ..., +RAND_CONSTANT]
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.