LibreOffice Module android (master) 1
Static Public Member Functions | Private Member Functions | List of all members
org.mozilla.gecko.util.FloatUtils Class Reference

Static Public Member Functions

static boolean fuzzyEquals (float a, float b)
 
static boolean fuzzyEquals (PointF a, PointF b)
 
static float interpolate (float from, float to, float t)
 
static float clamp (float value, float low, float high)
 Returns 'value', clamped so that it isn't any lower than 'low', and it isn't any higher than 'high'. More...
 

Private Member Functions

 FloatUtils ()
 

Detailed Description

Definition at line 10 of file FloatUtils.java.

Constructor & Destructor Documentation

◆ FloatUtils()

org.mozilla.gecko.util.FloatUtils.FloatUtils ( )
inlineprivate

Definition at line 11 of file FloatUtils.java.

Member Function Documentation

◆ clamp()

static float org.mozilla.gecko.util.FloatUtils.clamp ( float  value,
float  low,
float  high 
)
inlinestatic

Returns 'value', clamped so that it isn't any lower than 'low', and it isn't any higher than 'high'.

Definition at line 34 of file FloatUtils.java.

References Math, and value.

◆ fuzzyEquals() [1/2]

static boolean org.mozilla.gecko.util.FloatUtils.fuzzyEquals ( float  a,
float  b 
)
inlinestatic

◆ fuzzyEquals() [2/2]

static boolean org.mozilla.gecko.util.FloatUtils.fuzzyEquals ( PointF  a,
PointF  b 
)
inlinestatic

Definition at line 17 of file FloatUtils.java.

References a, and org.mozilla.gecko.util.FloatUtils.fuzzyEquals().

◆ interpolate()

static float org.mozilla.gecko.util.FloatUtils.interpolate ( float  from,
float  to,
float  t 
)
inlinestatic

The documentation for this class was generated from the following file: