| Index: tools/dom/src/Point.dart
|
| diff --git a/tools/dom/src/Point.dart b/tools/dom/src/Point.dart
|
| index 366cae055aadaabc000d0d117ce0bf58fc89d130..c5c1df8d741f0916aa5ff0bfd88439b0a4b39ecb 100644
|
| --- a/tools/dom/src/Point.dart
|
| +++ b/tools/dom/src/Point.dart
|
| @@ -35,6 +35,12 @@ class Point {
|
| }
|
|
|
| /**
|
| + * Get the straight line (Euclidean) distance between the origin (0, 0) and
|
| + * this point.
|
| + */
|
| + num get magnitude => sqrt(x * x + y * y);
|
| +
|
| + /**
|
| * Returns the distance between two points.
|
| */
|
| double distanceTo(Point other) {
|
|
|