Here you can find the source of intArray(double a, double b, double c)
Parameter | Description |
---|---|
a | x |
b | y |
c | z |
static int[] intArray(double a, double b, double c)
//package com.java2s; //License from project: LGPL public class Main { /**//from w ww .j a v a 2 s . co m * Helper method to avoid lots of explicit casts in getShape(). Returns * an array containing the provided doubles cast to ints. * * @param a x * @param b y * @param c z * * @return int[3] with converted params. */ static int[] intArray(double a, double b, double c) { return new int[] { (int) a, (int) b, (int) c }; } /** * Helper method to avoid lots of explicit casts in getShape(). Returns * an array containing the provided doubles cast to ints. * * @param a x * @param b y * @param c z * @param d t * * @return int[4] with converted params. */ static int[] intArray(double a, double b, double c, double d) { return new int[] { (int) a, (int) b, (int) c, (int) d }; } }