public class MathUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
computeNewPosition(float[] point,
State initialState,
State finalState) |
static float |
interpolate(float start,
float end,
float factor)
Interpolates from start value to the end one by given factor (from 0 to 1).
|
static void |
interpolate(android.graphics.RectF out,
android.graphics.RectF start,
android.graphics.RectF end,
float factor)
Interpolates from start rect to the end rect by given factor (from 0 to 1),
storing result into out rect.
|
static void |
interpolate(State out,
State start,
float startPivotX,
float startPivotY,
State end,
float endPivotX,
float endPivotY,
float factor)
Interpolates from start state to end state by given factor (from 0 to 1),
storing result into out state.
|
static void |
interpolate(State out,
State start,
State end,
float factor)
Interpolates from start state to end state by given factor (from 0 to 1),
storing result into out state.
|
static float |
restrict(float value,
float minValue,
float maxValue)
Keeps value within provided bounds.
|
public static float restrict(float value,
float minValue,
float maxValue)
public static float interpolate(float start,
float end,
float factor)
public static void interpolate(android.graphics.RectF out,
android.graphics.RectF start,
android.graphics.RectF end,
float factor)
public static void interpolate(State out, State start, State end, float factor)
public static void interpolate(State out, State start, float startPivotX, float startPivotY, State end, float endPivotX, float endPivotY, float factor)