getDistance method

double getDistance()

Implementation

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