Calculates the slope between two points and checks whether it falls within the specified minimum and maximum slope criteria. Used for lot grading and drainage verification.