petite/src/wombat/scheme/libraries/TurtleAPI.java
public static double[] linesToMinMax(List<LineData> lines) {
		double minX = 0;
		double maxX = 0;
		double minY = 0; 
		double maxY = 0;
		
		for (LineData line : lines) {
			minX = Math.min(line.X0, Math.min(line.X1, minX));
			maxX = Math.max(line.X0, Math.max(line.X1, maxX));
			minY = Math.min(line.Y0, Math.min(line.Y1, minY));
			maxY = Math.max(line.Y0, Math.max(line.Y1, maxY));
		}
		
		return new double[]{minX, maxX, minY, maxY};
	}
/**
	 * Find the minimum and maximum x and y.
	 * @param lines The lines to analyze.
	 * @return Minimum and maximum.
	 */
Find the minimum and maximum x and y.
@param lines The lines to analyze.
@return Minimum and maximum.
Find the minimum and maximum x and y . @param lines The lines to analyze . @return Minimum and maximum .
public static double[] linesToMinMax(List<LineData> lines) {
		double minX = 0;
		double maxX = 0;
		double minY = 0; 
		double maxY = 0;
		for (LineData line : lines) {
			minX = Math.min(line.X0, Math.min(line.X1, minX));
			maxX = Math.max(line.X0, Math.max(line.X1, maxX));
			minY = Math.min(line.Y0, Math.min(line.Y1, minY));
			maxY = Math.max(line.Y0, Math.max(line.Y1, maxY));
		}
		return new double[]{minX, maxX, minY, maxY};
	}
public static double [ ] linesToMinMax ( List < LineData > lines ) { double minX = 0 ; double maxX = 0 ; double minY = 0 ; double maxY = 0 ; for ( LineData line : lines ) { minX = Math . min ( line . X0 , Math . min ( line . X1 , minX ) ) ; maxX = Math . max ( line . X0 , Math . max ( line . X1 , maxX ) ) ; minY = Math . min ( line . Y0 , Math . min ( line . Y1 , minY ) ) ; maxY = Math . max ( line . Y0 , Math . max ( line . Y1 , maxY ) ) ; } return new double [ ] { minX , maxX , minY , maxY } ; }
Find the minimum and maximum x and y.
Find the minimum and maximum x and y .