magnitude property

  1. @override
double magnitude
override

Get the straight line (Euclidean) distance between the origin (0, 0) and this point.

Implementation

@override
double get magnitude => sqrt(x * x + y * y);