app / sg.edu.ntu.scse.cz2006.gymbuddies.widget / Utils

Utils

open class Utils

Animated "heart" button based off Twitter's implementation Adapted from https://github.com/frogermcs/LikeAnimation for sg.edu.ntu.scse.cz2006.gymbuddies.widget in Gym Buddies!

Author
Kenneth Soh, frogermcs

Since
2019-10-01

Constructors

<init>

Animated "heart" button based off Twitter's implementation Adapted from https://github.com/frogermcs/LikeAnimation for sg.edu.ntu.scse.cz2006.gymbuddies.widget in Gym Buddies!

Utils()

Functions

clamp

open static fun clamp(value: Double, low: Double, high: Double): Double

mapValueFromRangeToRange

open static fun mapValueFromRangeToRange(value: Double, fromLow: Double, fromHigh: Double, toLow: Double, toHigh: Double): Double