Skip to content

Commit 81f993f

Browse files
committed
Merge pull request #90 from brason/remove_braces
Use ; instead of {} for empty constructor bodies
2 parents 72571e1 + 9677b31 commit 81f993f

File tree

12 files changed

+42
-42
lines changed

12 files changed

+42
-42
lines changed

lib/src/vector_math/aabb2.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ class Aabb2 {
3535

3636
Aabb2()
3737
: _min = new Vector2.zero(),
38-
_max = new Vector2.zero() {}
38+
_max = new Vector2.zero();
3939

4040
Aabb2.copy(Aabb2 other)
4141
: _min = new Vector2.copy(other._min),
42-
_max = new Vector2.copy(other._max) {}
42+
_max = new Vector2.copy(other._max);
4343

4444
@deprecated
4545
Aabb2.minmax(Vector2 min_, Vector2 max_)
4646
: _min = new Vector2.copy(min_),
47-
_max = new Vector2.copy(max_) {}
47+
_max = new Vector2.copy(max_);
4848

4949
Aabb2.minMax(Vector2 min_, Vector2 max_)
5050
: _min = new Vector2.copy(min_),
51-
_max = new Vector2.copy(max_) {}
51+
_max = new Vector2.copy(max_);
5252

5353
void copyMinMax(Vector2 min_, Vector2 max_) {
5454
max_.setFrom(_max);

lib/src/vector_math/aabb3.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ class Aabb3 {
3535

3636
Aabb3()
3737
: _min = new Vector3.zero(),
38-
_max = new Vector3.zero() {}
38+
_max = new Vector3.zero();
3939

4040
Aabb3.copy(Aabb3 other)
4141
: _min = new Vector3.copy(other._min),
42-
_max = new Vector3.copy(other._max) {}
42+
_max = new Vector3.copy(other._max);
4343

4444
@deprecated
4545
Aabb3.minmax(Vector3 min_, Vector3 max_)
4646
: _min = new Vector3.copy(min_),
47-
_max = new Vector3.copy(max_) {}
47+
_max = new Vector3.copy(max_);
4848

4949
Aabb3.minMax(Vector3 min_, Vector3 max_)
5050
: _min = new Vector3.copy(min_),
51-
_max = new Vector3.copy(max_) {}
51+
_max = new Vector3.copy(max_);
5252

5353
void copyMinMax(Vector3 min_, Vector3 max_) {
5454
max_.setFrom(_max);

lib/src/vector_math/plane.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ class Plane {
5555

5656
Plane()
5757
: _normal = new Vector3.zero(),
58-
_constant = 0.0 {}
58+
_constant = 0.0;
5959

6060
Plane.copy(Plane other)
6161
: _normal = new Vector3.copy(other._normal),
62-
_constant = other._constant {}
62+
_constant = other._constant;
6363

6464
Plane.components(double x, double y, double z, double w)
6565
: _normal = new Vector3(x, y, z),
66-
_constant = w {}
66+
_constant = w;
6767

6868
Plane.normalconstant(Vector3 normal_, double constant_)
6969
: _normal = new Vector3.copy(normal_),
70-
_constant = constant_ {}
70+
_constant = constant_;
7171

7272
void copyFrom(Plane o) {
7373
_normal.setFrom(o._normal);

lib/src/vector_math/ray.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ class Ray {
3030

3131
Ray()
3232
: _origin = new Vector3.zero(),
33-
_direction = new Vector3.zero() {}
33+
_direction = new Vector3.zero();
3434

3535
Ray.copy(Ray other)
3636
: _origin = new Vector3.copy(other._origin),
37-
_direction = new Vector3.copy(other._direction) {}
37+
_direction = new Vector3.copy(other._direction);
3838

3939
Ray.originDirection(Vector3 origin_, Vector3 direction_)
4040
: _origin = new Vector3.copy(origin_),
41-
_direction = new Vector3.copy(direction_) {}
41+
_direction = new Vector3.copy(direction_);
4242

4343
void copyOriginDirection(Vector3 origin_, Vector3 direction_) {
4444
origin_.setFrom(_origin);

lib/src/vector_math/sphere.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class Sphere {
3131

3232
Sphere()
3333
: _center = new Vector3.zero(),
34-
_radius = 0.0 {}
34+
_radius = 0.0;
3535

3636
Sphere.copy(Sphere other)
3737
: _center = new Vector3.copy(other._center),
38-
_radius = other._radius {}
38+
_radius = other._radius;
3939

4040
Sphere.centerRadius(Vector3 center_, double radius_)
4141
: _center = new Vector3.copy(center_),
42-
_radius = radius_ {}
42+
_radius = radius_;
4343

4444
void copyFrom(Sphere o) {
4545
_center.setFrom(o._center);

lib/src/vector_math/triangle.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ class Triangle {
3333
Triangle()
3434
: _point0 = new Vector3.zero(),
3535
_point1 = new Vector3.zero(),
36-
_point2 = new Vector3.zero() {}
36+
_point2 = new Vector3.zero();
3737

3838
Triangle.copy(Triangle other)
3939
: _point0 = new Vector3.copy(other._point0),
4040
_point1 = new Vector3.copy(other._point1),
41-
_point2 = new Vector3.copy(other._point2) {}
41+
_point2 = new Vector3.copy(other._point2);
4242

4343
Triangle.points(Vector3 point0_, Vector3 point1_, Vector3 point2_)
4444
: _point0 = new Vector3.copy(point0_),
4545
_point1 = new Vector3.copy(point1_),
46-
_point2 = new Vector3.copy(point2_) {}
46+
_point2 = new Vector3.copy(point2_);
4747

4848
void copyOriginDirection(Vector3 point0_, Vector3 point1_, Vector3 point2_) {
4949
point0_.setFrom(_point0);

lib/src/vector_math_64/aabb2.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ class Aabb2 {
3535

3636
Aabb2()
3737
: _min = new Vector2.zero(),
38-
_max = new Vector2.zero() {}
38+
_max = new Vector2.zero();
3939

4040
Aabb2.copy(Aabb2 other)
4141
: _min = new Vector2.copy(other._min),
42-
_max = new Vector2.copy(other._max) {}
42+
_max = new Vector2.copy(other._max);
4343

4444
@deprecated
4545
Aabb2.minmax(Vector2 min_, Vector2 max_)
4646
: _min = new Vector2.copy(min_),
47-
_max = new Vector2.copy(max_) {}
47+
_max = new Vector2.copy(max_);
4848

4949
Aabb2.minMax(Vector2 min_, Vector2 max_)
5050
: _min = new Vector2.copy(min_),
51-
_max = new Vector2.copy(max_) {}
51+
_max = new Vector2.copy(max_);
5252

5353
void copyMinMax(Vector2 min_, Vector2 max_) {
5454
max_.setFrom(_max);

lib/src/vector_math_64/aabb3.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ class Aabb3 {
3535

3636
Aabb3()
3737
: _min = new Vector3.zero(),
38-
_max = new Vector3.zero() {}
38+
_max = new Vector3.zero();
3939

4040
Aabb3.copy(Aabb3 other)
4141
: _min = new Vector3.copy(other._min),
42-
_max = new Vector3.copy(other._max) {}
42+
_max = new Vector3.copy(other._max);
4343

4444
@deprecated
4545
Aabb3.minmax(Vector3 min_, Vector3 max_)
4646
: _min = new Vector3.copy(min_),
47-
_max = new Vector3.copy(max_) {}
47+
_max = new Vector3.copy(max_);
4848

4949
Aabb3.minMax(Vector3 min_, Vector3 max_)
5050
: _min = new Vector3.copy(min_),
51-
_max = new Vector3.copy(max_) {}
51+
_max = new Vector3.copy(max_);
5252

5353
void copyMinMax(Vector3 min_, Vector3 max_) {
5454
max_.setFrom(_max);

lib/src/vector_math_64/plane.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ class Plane {
5555

5656
Plane()
5757
: _normal = new Vector3.zero(),
58-
_constant = 0.0 {}
58+
_constant = 0.0;
5959

6060
Plane.copy(Plane other)
6161
: _normal = new Vector3.copy(other._normal),
62-
_constant = other._constant {}
62+
_constant = other._constant;
6363

6464
Plane.components(double x, double y, double z, double w)
6565
: _normal = new Vector3(x, y, z),
66-
_constant = w {}
66+
_constant = w;
6767

6868
Plane.normalconstant(Vector3 normal_, double constant_)
6969
: _normal = new Vector3.copy(normal_),
70-
_constant = constant_ {}
70+
_constant = constant_;
7171

7272
void copyFrom(Plane o) {
7373
_normal.setFrom(o._normal);

lib/src/vector_math_64/ray.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ class Ray {
3030

3131
Ray()
3232
: _origin = new Vector3.zero(),
33-
_direction = new Vector3.zero() {}
33+
_direction = new Vector3.zero();
3434

3535
Ray.copy(Ray other)
3636
: _origin = new Vector3.copy(other._origin),
37-
_direction = new Vector3.copy(other._direction) {}
37+
_direction = new Vector3.copy(other._direction);
3838

3939
Ray.originDirection(Vector3 origin_, Vector3 direction_)
4040
: _origin = new Vector3.copy(origin_),
41-
_direction = new Vector3.copy(direction_) {}
41+
_direction = new Vector3.copy(direction_);
4242

4343
void copyOriginDirection(Vector3 origin_, Vector3 direction_) {
4444
origin_.setFrom(_origin);

lib/src/vector_math_64/sphere.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class Sphere {
3131

3232
Sphere()
3333
: _center = new Vector3.zero(),
34-
_radius = 0.0 {}
34+
_radius = 0.0;
3535

3636
Sphere.copy(Sphere other)
3737
: _center = new Vector3.copy(other._center),
38-
_radius = other._radius {}
38+
_radius = other._radius;
3939

4040
Sphere.centerRadius(Vector3 center_, double radius_)
4141
: _center = new Vector3.copy(center_),
42-
_radius = radius_ {}
42+
_radius = radius_;
4343

4444
void copyFrom(Sphere o) {
4545
_center.setFrom(o._center);

lib/src/vector_math_64/triangle.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ class Triangle {
3333
Triangle()
3434
: _point0 = new Vector3.zero(),
3535
_point1 = new Vector3.zero(),
36-
_point2 = new Vector3.zero() {}
36+
_point2 = new Vector3.zero();
3737

3838
Triangle.copy(Triangle other)
3939
: _point0 = new Vector3.copy(other._point0),
4040
_point1 = new Vector3.copy(other._point1),
41-
_point2 = new Vector3.copy(other._point2) {}
41+
_point2 = new Vector3.copy(other._point2);
4242

4343
Triangle.points(Vector3 point0_, Vector3 point1_, Vector3 point2_)
4444
: _point0 = new Vector3.copy(point0_),
4545
_point1 = new Vector3.copy(point1_),
46-
_point2 = new Vector3.copy(point2_) {}
46+
_point2 = new Vector3.copy(point2_);
4747

4848
void copyOriginDirection(Vector3 point0_, Vector3 point1_, Vector3 point2_) {
4949
point0_.setFrom(_point0);

0 commit comments

Comments
 (0)