Chromium Code Reviews| Index: sky/engine/core/painting/Offset.dart |
| diff --git a/sky/engine/core/painting/Offset.dart b/sky/engine/core/painting/Offset.dart |
| index 6bbbbc8eb99f1e3b9780051e796567ffd8d5fdcd..84dc4cc8a13c4a8f614fa8ebbe401f759a892a87 100644 |
| --- a/sky/engine/core/painting/Offset.dart |
| +++ b/sky/engine/core/painting/Offset.dart |
| @@ -21,6 +21,7 @@ class Offset extends OffsetBase { |
| Offset operator -() => new Offset(-dx, -dy); |
| Offset operator -(Offset other) => new Offset(dx - other.dx, dy - other.dy); |
| Offset operator +(Offset other) => new Offset(dx + other.dx, dy + other.dy); |
| + Offset operator *(double scale) => new Offset(dx * scale, dy * scale); |
|
Hixie
2015/06/30 23:11:56
If you add *, also add /, ~/, and %. See Size.dart
Matt Perry
2015/07/01 18:17:43
Done.
|
| Rect operator &(Size other) => new Rect.fromLTWH(dx, dy, other.width, other.height); |
| // does the equivalent of "return new Point(0,0) + this" |