@@ -42,7 +42,7 @@ inline bool b2IsValid(float x)
42
42
struct B2_API b2Vec2
43
43
{
44
44
// / Default constructor does nothing (for performance).
45
- b2Vec2 () {}
45
+ b2Vec2 () = default ;
46
46
47
47
// / Construct using coordinates.
48
48
b2Vec2 (float xIn, float yIn) : x(xIn), y(yIn) {}
@@ -133,7 +133,7 @@ struct B2_API b2Vec2
133
133
struct B2_API b2Vec3
134
134
{
135
135
// / Default constructor does nothing (for performance).
136
- b2Vec3 () {}
136
+ b2Vec3 () = default ;
137
137
138
138
// / Construct using coordinates.
139
139
b2Vec3 (float xIn, float yIn, float zIn) : x(xIn), y(yIn), z(zIn) {}
@@ -172,7 +172,7 @@ struct B2_API b2Vec3
172
172
struct B2_API b2Mat22
173
173
{
174
174
// / The default constructor does nothing (for performance).
175
- b2Mat22 () {}
175
+ b2Mat22 () = default ;
176
176
177
177
// / Construct this matrix using columns.
178
178
b2Mat22 (const b2Vec2& c1, const b2Vec2& c2)
@@ -246,7 +246,7 @@ struct B2_API b2Mat22
246
246
struct B2_API b2Mat33
247
247
{
248
248
// / The default constructor does nothing (for performance).
249
- b2Mat33 () {}
249
+ b2Mat33 () = default ;
250
250
251
251
// / Construct this matrix using columns.
252
252
b2Mat33 (const b2Vec3& c1, const b2Vec3& c2, const b2Vec3& c3)
@@ -287,7 +287,7 @@ struct B2_API b2Mat33
287
287
// / Rotation
288
288
struct B2_API b2Rot
289
289
{
290
- b2Rot () {}
290
+ b2Rot () = default ;
291
291
292
292
// / Initialize from an angle in radians
293
293
explicit b2Rot (float angle)
@@ -339,7 +339,7 @@ struct B2_API b2Rot
339
339
struct B2_API b2Transform
340
340
{
341
341
// / The default constructor does nothing.
342
- b2Transform () {}
342
+ b2Transform () = default ;
343
343
344
344
// / Initialize using a position vector and a rotation.
345
345
b2Transform (const b2Vec2& position, const b2Rot& rotation) : p(position), q(rotation) {}
@@ -368,6 +368,8 @@ struct B2_API b2Transform
368
368
// / we must interpolate the center of mass position.
369
369
struct B2_API b2Sweep
370
370
{
371
+ b2Sweep () = default ;
372
+
371
373
// / Get the interpolated transform at a specific time.
372
374
// / @param transform the output transform
373
375
// / @param beta is a factor in [0,1], where 0 indicates alpha0.
0 commit comments