blob: 155f7ea7fae43f7418b32d9b25134ac466d4d9b5 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <string>
namespace impeller {
struct Shear {
union {
struct {
double xy = 0.0;
double xz = 0.0;
double yz = 0.0;
};
double e[3];
};
Shear() {}
Shear(double xy, double xz, double yz) : xy(xy), xz(xz), yz(yz) {}
bool operator==(const Shear& o) const {
return xy == o.xy && xz == o.xz && yz == o.yz;
}
bool operator!=(const Shear& o) const { return !(*this == o); }
};
} // namespace impeller