public class EaselMathHelper
extends java.lang.Object
| Constructor and Description |
|---|
EaselMathHelper() |
| Modifier and Type | Method and Description |
|---|---|
static float |
roundToMultipleOf(float numberToRound,
float multiple) |
static int |
roundToMultipleOf(int numberToRound,
int multiple) |
public static int roundToMultipleOf(int numberToRound,
int multiple)
numberToRound - the number to roundmultiple - the output will be some multiple of this numbermultiple that is closest to numberToRoundpublic static float roundToMultipleOf(float numberToRound,
float multiple)
numberToRound - the number to roundmultiple - the output will be some multiple of this numbermultiple that is closest to numberToRound