Package org.cmj.flowy.simulation.math

Examples of org.cmj.flowy.simulation.math.Vector2.divide()


    positionOld.y = origPosY;
   
    // calculate velocity
    // Velocity = (Position - PositionOld) / dt;
    temp = Vector2.Subtract(position, positionOld);
    temp.divide(timeStep);
    velocity.setFromVector(temp);
  }

}
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.