Package math

Examples of math.Vector.invert()


    double impulse = (e + 1) * Vector.getDistance(v1, v2) / (1 / m1 + 1 / m2 
        + Vector.cross(dRot1, arm1).dot(n) + Vector.cross(dRot2, arm2).dot(n));
    v1.add(n.clone().scale(- impulse / m1));
    v2.add(n.clone().scale(impulse / m2));
    rot1.add(dRot1.invert());
    rot2.add(dRot2.invert());
  }
}
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.