Here you can find the source of maxY(final float[] vertices)
public static final float maxY(final float[] vertices)
//package com.java2s; //License from project: Open Source License public class Main { public static final float maxY(final float[] vertices) { float maxY = vertices[1]; for (int i = 0; i < vertices.length / 2; i++) { maxY = Math.max(maxY, vertices[i * 2 + 1]); }/*from w w w. ja v a2 s .c o m*/ return maxY; } }