implicit final class ConvenientFloat extends AnyVal
This class extends the interface of Float with convenience methods.
- Alphabetic
- By Inheritance
- ConvenientFloat
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConvenientFloat(value: Float)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atLeast(minimum: Float): Float
num atLeast limitis equivalent tonum.max(limit). - def atMost(maximum: Float): Float
num atMost limitis equivalent tonum.min(limit). - def clamp(low: Int, high: Int): Float
num.clamp(low, high)is equivalent tonum.max(low).min(high). - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isBetween(low: Float, high: Float): Boolean
Determines if the at least as large as
lowand less thanhigh.Determines if the at least as large as
lowand less thanhigh. Note that the lower bound is inclusive and the upper bound exclusive. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString: String
- Definition Classes
- Any