getDistance method

double getDistance()

The magnitude of the ExpressivePoint, which is the distance of this point from (0, 0).

If you need this value to compare it to another ExpressivePoint's distance, consider using getDistanceSquared instead, since it is cheaper to compute.

Implementation

double getDistance() => math.sqrt(x * x + y * y);