Here you can find the source of toLongMin(double[] in, long[] out)
public static void toLongMin(double[] in, long[] out)
//package com.java2s; //License from project: Open Source License public class Main { public static void toLongMin(double[] in, long[] out) { for (int i = 0; i < in.length; i++) { long newcoord = (long) Math.floor(in[i]); if (newcoord < out[i]) out[i] = newcoord;//from w w w . ja va 2s . c om } } }