Java tutorial
//package com.java2s; public class Main { /** * Get top value of the bounding rectangle of the given points. */ public static float getRectTop(float[] points) { return Math.min(Math.min(Math.min(points[1], points[3]), points[5]), points[7]); } }