public class MathUtil extends Object
Modifier and Type | Method and Description |
---|---|
static float |
constrain(float min,
float max,
float v) |
static float |
dist(float x,
float y) |
static int |
floorEven(int num) |
static float |
interpolate(float x1,
float x2,
float f) |
static boolean |
isEven(int num) |
static int |
roundMult4(int num) |
static float |
uninterpolate(float x1,
float x2,
float v) |
public static float constrain(float min, float max, float v)
public static float interpolate(float x1, float x2, float f)
public static float uninterpolate(float x1, float x2, float v)
public static float dist(float x, float y)
public static int floorEven(int num)
public static int roundMult4(int num)
public static boolean isEven(int num)
Copyright © 2011–2014. All rights reserved.