Add function to test if the sail is within bounds