magnitude property

double get magnitude

Implementation

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