Java Array Min Value minX(final float[] vertices)

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

Description

min X

License

Open Source License

Declaration

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

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final float minX(final float[] vertices) {
        float minX = vertices[0];
        for (int i = 0; i < vertices.length / 2; i++) {
            minX = Math.min(minX, vertices[i * 2]);
        }//from  ww w.  jav  a 2s . c o m
        return minX;
    }
}

Related

  1. minValue(final int[] arr)
  2. minValue(float[] arr)
  3. minValue(int[] array)
  4. minValue(int[] values)
  5. minValue(long[] array)