More cleanups.

This commit is contained in:
Chinmay Garde 2021-05-05 21:07:48 -07:00 committed by Dan Field
parent 946521dd39
commit 864cc59f52
2 changed files with 7 additions and 7 deletions

View File

@ -12,14 +12,14 @@ namespace geom {
struct Shear {
union {
struct {
double xy;
double xz;
double yz;
double xy = 0.0;
double xz = 0.0;
double yz = 0.0;
};
double e[3];
};
Shear() : xy(0.0), xz(0.0), yz(0.0) {}
Shear() {}
Shear(double xy, double xz, double yz) : xy(xy), xz(xz), yz(yz) {}

View File

@ -10,10 +10,10 @@ namespace rl {
namespace geom {
struct Size {
double width;
double height;
double width = 0.0;
double height = 0.0;
Size() : width(0.0), height(0.0) {}
Size() {}
Size(double width, double height) : width(width), height(height) {}