Here you can find the source of sortMinMaxToMax(double[] min, double[] max)
public static double[] sortMinMaxToMax(double[] min, double[] max)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] sortMinMaxToMax(double[] min, double[] max) { double[] newMax = new double[3]; newMax[0] = Math.max(min[0], max[0]); newMax[1] = Math.max(min[1], max[1]); newMax[2] = Math.max(min[2], max[2]); return newMax; }/*from w w w. j ava 2 s . com*/ }