| Index: sky/engine/core/painting/Point.dart
|
| diff --git a/sky/engine/core/painting/Point.dart b/sky/engine/core/painting/Point.dart
|
| index 856f3360fdfc0c2addab930972c4bea341c6920b..82d2875e3b82c72a145429c439229f2d92c3839d 100644
|
| --- a/sky/engine/core/painting/Point.dart
|
| +++ b/sky/engine/core/painting/Point.dart
|
| @@ -4,9 +4,22 @@
|
|
|
| part of dart.sky;
|
|
|
| +/// Holds 2 floating-point coordinates.
|
| class Point {
|
| double x;
|
| double y;
|
|
|
| Point(this.x, this.y);
|
| +
|
| + bool operator ==(other) {
|
| + if (!(other is Point)) return false;
|
| + return x == other.x && y == other.y;
|
| + }
|
| + int get hashCode {
|
| + int result = 373;
|
| + result = 37 * result + x.hashCode;
|
| + result = 37 * result + y.hashCode;
|
| + return result;
|
| + }
|
| + String toString() => "Point($x, $y)";
|
| }
|
|
|