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

Unified Diff: lib/src/dynamics/contacts/contact_solver.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/contacts/contact.dart ('k') | lib/src/dynamics/joints/distance_joint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dynamics/contacts/contact_solver.dart
diff --git a/lib/src/dynamics/contacts/contact_solver.dart b/lib/src/dynamics/contacts/contact_solver.dart
index 589d298b8702814a0245b765d14054f83a3f6958..098ffb3fc9c8b2c185a2cd40d2a56ab36bc5f70c 100644
--- a/lib/src/dynamics/contacts/contact_solver.dart
+++ b/lib/src/dynamics/contacts/contact_solver.dart
@@ -72,8 +72,8 @@ class ContactSolver {
if (_positionConstraints.length < _count) {
List<ContactPositionConstraint> old = _positionConstraints;
- _positionConstraints = new List<ContactPositionConstraint>(
- Math.max(old.length * 2, _count));
+ _positionConstraints =
+ new List<ContactPositionConstraint>(Math.max(old.length * 2, _count));
BufferUtils.arraycopy(old, 0, _positionConstraints, 0, old.length);
for (int i = old.length; i < _positionConstraints.length; i++) {
_positionConstraints[i] = new ContactPositionConstraint();
@@ -82,8 +82,8 @@ class ContactSolver {
if (_velocityConstraints.length < _count) {
List<ContactVelocityConstraint> old = _velocityConstraints;
- _velocityConstraints = new List<ContactVelocityConstraint>(
- Math.max(old.length * 2, _count));
+ _velocityConstraints =
+ new List<ContactVelocityConstraint>(Math.max(old.length * 2, _count));
BufferUtils.arraycopy(old, 0, _velocityConstraints, 0, old.length);
for (int i = old.length; i < _velocityConstraints.length; i++) {
_velocityConstraints[i] = new ContactVelocityConstraint();
« no previous file with comments | « lib/src/dynamics/contacts/contact.dart ('k') | lib/src/dynamics/joints/distance_joint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698