squaredDistanceFrom

open fun squaredDistanceFrom(x: Int, y: Int): Int

Returns the square of the distance between the center of the key and the given point.

Return

the square of the distance of the point from the center of the key

Parameters

x

the x-coordinate of the point

y

the y-coordinate of the point