If the arguments are absolute positions (x,y) instead of (width, height), I'd rename this method to "setEndpoint".