public class MathUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
PI |
static float |
PI_OVER_2 |
static float |
PI_OVER_4 |
static float |
ROOT_PI_OVER_TWO |
static float |
SQRT_2 |
static float |
TWO_PI |
| Constructor and Description |
|---|
MathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static float |
clamp(float x,
float min,
float max) |
static float |
clampedMap(float x,
float a,
float b,
float u,
float v) |
static float |
clampedMap(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator) |
static int |
clampedMapInt(float x,
float a,
float b,
int u,
int v) |
static float |
cycle(long time,
float period) |
static float |
cycle(long time,
float period,
float phaseShift) |
static float |
cycleBackwards(long time,
float period) |
static float |
degreesToRadians(float degrees) |
static float |
fractionalPart(float v) |
static float |
hang(long time,
float period) |
static float |
map(float x,
float a,
float b,
float u,
float v) |
static float |
map(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator) |
static int |
mapInt(float x,
float a,
float b,
int u,
int v) |
static int |
mapInt(float x,
float a,
float b,
int u,
int v,
android.view.animation.Interpolator interpolator) |
static float |
mapLoop(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator) |
static float |
oscillate(long time,
float period) |
static float |
oscillate(long time,
float period,
float phaseShift) |
static int |
phase(long time,
float period,
int n) |
static float |
pulse(long time,
float period,
float pulseWidth,
float phaseShift) |
static int |
quadrant(long time,
float period) |
static float |
radiansToDegrees(float degrees) |
static PointD |
rotate(double x,
double y,
double angle) |
static PointD |
rotate(double x,
double y,
double angle,
PointD point) |
public static final float SQRT_2
public static final float TWO_PI
public static final float PI
public static final float PI_OVER_2
public static final float PI_OVER_4
public static final float ROOT_PI_OVER_TWO
public static float clamp(float x,
float min,
float max)
public static float degreesToRadians(float degrees)
public static float radiansToDegrees(float degrees)
public static float map(float x,
float a,
float b,
float u,
float v)
public static int mapInt(float x,
float a,
float b,
int u,
int v)
public static int mapInt(float x,
float a,
float b,
int u,
int v,
android.view.animation.Interpolator interpolator)
public static int clampedMapInt(float x,
float a,
float b,
int u,
int v)
public static float clampedMap(float x,
float a,
float b,
float u,
float v)
public static float clampedMap(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator)
public static float map(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator)
public static float mapLoop(float x,
float a,
float b,
float u,
float v,
android.view.animation.Interpolator interpolator)
public static float cycle(long time,
float period)
public static float cycle(long time,
float period,
float phaseShift)
public static float hang(long time,
float period)
public static float cycleBackwards(long time,
float period)
public static float oscillate(long time,
float period)
public static float oscillate(long time,
float period,
float phaseShift)
public static float pulse(long time,
float period,
float pulseWidth,
float phaseShift)
public static float fractionalPart(float v)
public static int quadrant(long time,
float period)
public static PointD rotate(double x, double y, double angle)
public static int phase(long time,
float period,
int n)