public bool PassesThroughRect(MarkGeometryRectangle rect) { if ( GeometricArithmeticModule.IsWithin( CalculateY(rect.Extents.MinX), rect.Extents.MinY, rect.Extents.MaxY ) || GeometricArithmeticModule.IsWithin( CalculateX(rect.Extents.MinY), rect.Extents.MinX, rect.Extents.MaxX ) || GeometricArithmeticModule.IsWithin( CalculateY(rect.Extents.MaxX), rect.Extents.MinY, rect.Extents.MaxY ) || GeometricArithmeticModule.IsWithin( CalculateX(rect.Extents.MaxY), rect.Extents.MinX, rect.Extents.MaxX ) ) { return(true); } return(false); }