magnitude property
double
get
magnitude
Returns the magnitude (length) of this point as a vector.
Implementation
double get magnitude => math.sqrt(x * x + y * y);
Returns the magnitude (length) of this point as a vector.
double get magnitude => math.sqrt(x * x + y * y);