Java Array Max Value maxY(final float[] vertices)

Here you can find the source of maxY(final float[] vertices)

Description

max Y

License

Open Source License

Declaration

public static final float maxY(final float[] vertices) 

Method Source Code

//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;
    }
}

Related

  1. maxValue(float[] arr)
  2. maxValue(int[] arr)
  3. maxValue(int[] values)
  4. maxValueInRemainingListElements(String[] numberList, int initialIndex)
  5. maxValuePos(final float[] in)