public class

MathUtil

extends Object
java.lang.Object
   ↳ com.droidux.core.components.utils.MathUtil

Class Overview

Math utilities used by DroidUX components.

Summary

Public Methods
static float restrict(float amount, float low, float high)
Equivalent to Math.max(low, Math.min(high, amount));
static int restrict(int amount, int low, int high)
Equivalent to Math.max(low, Math.min(high, amount));
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static float restrict (float amount, float low, float high)

Since: API Level 3.0

Equivalent to Math.max(low, Math.min(high, amount));

public static int restrict (int amount, int low, int high)

Since: API Level 3.0

Equivalent to Math.max(low, Math.min(high, amount));