Returns a vector composed of x and y components that are not greater than the specified maximum components.