public Coordinate getSnappedLocationWithinMaxBounds ( HumanInputEvent < ? > event ) { Coordinate location = getLocation ( event , RenderSpace . WORLD ) ; location = getLocationWithinMaxBounds ( location ) ; if ( snappingEnabled ) { location = snappingService . snap ( location ) ; } return location ; }
Get the snapped real world location of the event while making sure it is within the maximum bounds . If no maximum bounds have been set the snapped location of the event in world space is returned .