Here you can find the source of roundToDimensions(int value, int f)
Parameter | Description |
---|---|
value | a parameter |
f | a parameter |
public static int roundToDimensions(int value, int f)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w . j ava 2s. c o m*/ * Round. * * @param value * @param f * @return */ public static int roundToDimensions(int value, int f) { return Math.round(value / f) * f; } }