Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1204)

Unified Diff: lib/src/dynamics/joints/pulley_joint.dart

Issue 1138063003: pkg/box2d: 0.2.0 release (Closed) Base URL: https://github.com/google/dbox2d.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/dynamics/joints/prismatic_joint.dart ('k') | lib/src/dynamics/joints/revolute_joint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dynamics/joints/pulley_joint.dart
diff --git a/lib/src/dynamics/joints/pulley_joint.dart b/lib/src/dynamics/joints/pulley_joint.dart
index 45e5c3ee04b3bd9f149fb77e54a8589ed8364b50..631b34d089955c8979fb2ffbc5a1d63c60d2b76a 100644
--- a/lib/src/dynamics/joints/pulley_joint.dart
+++ b/lib/src/dynamics/joints/pulley_joint.dart
@@ -190,10 +190,8 @@ class PulleyJoint extends Joint {
qB.setAngle(aB);
// Compute the effective masses.
- Rot.mulToOutUnsafe(
- qA, temp.setFrom(_localAnchorA).sub(_localCenterA), _rA);
- Rot.mulToOutUnsafe(
- qB, temp.setFrom(_localAnchorB).sub(_localCenterB), _rB);
+ Rot.mulToOutUnsafe(qA, temp.setFrom(_localAnchorA).sub(_localCenterA), _rA);
+ Rot.mulToOutUnsafe(qB, temp.setFrom(_localAnchorB).sub(_localCenterB), _rB);
_uA.setFrom(cA).add(_rA).sub(_groundAnchorA);
_uB.setFrom(cB).add(_rB).sub(_groundAnchorB);
@@ -314,10 +312,8 @@ class PulleyJoint extends Joint {
qA.setAngle(aA);
qB.setAngle(aB);
- Rot.mulToOutUnsafe(
- qA, temp.setFrom(_localAnchorA).sub(_localCenterA), rA);
- Rot.mulToOutUnsafe(
- qB, temp.setFrom(_localAnchorB).sub(_localCenterB), rB);
+ Rot.mulToOutUnsafe(qA, temp.setFrom(_localAnchorA).sub(_localCenterA), rA);
+ Rot.mulToOutUnsafe(qB, temp.setFrom(_localAnchorB).sub(_localCenterB), rB);
uA.setFrom(cA).add(rA).sub(_groundAnchorA);
uB.setFrom(cB).add(rB).sub(_groundAnchorB);
« no previous file with comments | « lib/src/dynamics/joints/prismatic_joint.dart ('k') | lib/src/dynamics/joints/revolute_joint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698