5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_GEOMETRY_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_GEOMETRY_H_
20 double x()
const {
return x_; }
21 double y()
const {
return y_; }
24 return x_ == other.x_ && y_ == other.y_;
37 : width_(std::fmax(0.0,
width)), height_(std::fmax(0.0,
height)) {}
42 double width()
const {
return width_; }
43 double height()
const {
return height_; }
46 return width_ == other.width_ && height_ == other.height_;
63 double left()
const {
return origin_.
x(); }
64 double top()
const {
return origin_.
y(); }
73 return origin_ == other.origin_ && size_ == other.size_;
83 #endif // FLUTTER_SHELL_PLATFORM_COMMON_GEOMETRY_H_