nearestPositionWithinBoundary abstract method

T nearestPositionWithinBoundary(
  1. T draggedObject
)

Returns the given dragged object after moving it fully inside the boundary with the shortest distance.

If the bounds cannot contain the dragged object, an exception is thrown.

Implementation

T nearestPositionWithinBoundary(T draggedObject);