getDistanceSquared method

double getDistanceSquared()

Implementation

double getDistanceSquared() => x * x + y * y;