@@ -42,7 +42,7 @@ inline bool b2IsValid(float x)
4242struct B2_API b2Vec2
4343{
4444 // / Default constructor does nothing (for performance).
45- b2Vec2 () {}
45+ b2Vec2 () = default ;
4646
4747 // / Construct using coordinates.
4848 b2Vec2 (float xIn, float yIn) : x(xIn), y(yIn) {}
@@ -133,7 +133,7 @@ struct B2_API b2Vec2
133133struct B2_API b2Vec3
134134{
135135 // / Default constructor does nothing (for performance).
136- b2Vec3 () {}
136+ b2Vec3 () = default ;
137137
138138 // / Construct using coordinates.
139139 b2Vec3 (float xIn, float yIn, float zIn) : x(xIn), y(yIn), z(zIn) {}
@@ -172,7 +172,7 @@ struct B2_API b2Vec3
172172struct B2_API b2Mat22
173173{
174174 // / The default constructor does nothing (for performance).
175- b2Mat22 () {}
175+ b2Mat22 () = default ;
176176
177177 // / Construct this matrix using columns.
178178 b2Mat22 (const b2Vec2& c1, const b2Vec2& c2)
@@ -246,7 +246,7 @@ struct B2_API b2Mat22
246246struct B2_API b2Mat33
247247{
248248 // / The default constructor does nothing (for performance).
249- b2Mat33 () {}
249+ b2Mat33 () = default ;
250250
251251 // / Construct this matrix using columns.
252252 b2Mat33 (const b2Vec3& c1, const b2Vec3& c2, const b2Vec3& c3)
@@ -287,7 +287,7 @@ struct B2_API b2Mat33
287287// / Rotation
288288struct B2_API b2Rot
289289{
290- b2Rot () {}
290+ b2Rot () = default ;
291291
292292 // / Initialize from an angle in radians
293293 explicit b2Rot (float angle)
@@ -339,7 +339,7 @@ struct B2_API b2Rot
339339struct B2_API b2Transform
340340{
341341 // / The default constructor does nothing.
342- b2Transform () {}
342+ b2Transform () = default ;
343343
344344 // / Initialize using a position vector and a rotation.
345345 b2Transform (const b2Vec2& position, const b2Rot& rotation) : p(position), q(rotation) {}
@@ -368,6 +368,8 @@ struct B2_API b2Transform
368368// / we must interpolate the center of mass position.
369369struct B2_API b2Sweep
370370{
371+ b2Sweep () = default ;
372+
371373 // / Get the interpolated transform at a specific time.
372374 // / @param transform the output transform
373375 // / @param beta is a factor in [0,1], where 0 indicates alpha0.
0 commit comments