Java tutorial
//package com.java2s; public class Main { /** * Get end value of the bounding rectangle of the given points. */ public static float getRectRight(float[] points) { return Math.max(Math.max(Math.max(points[0], points[2]), points[4]), points[6]); } }