RadiantKit 0.1.1

RadiantKit 0.1.1

Maintained by Simon Strandgaard.



  • By
  • neoneye

RadiantKit-iOS

Version License Platform

Usage

import RadiantKit

/// Convert the value 0.5 from the range 0..1 to the range 0..100, 
/// so this should result in a value around `50`.
let a: Float = RKMath.remap(0.5, 0, 1, 0, 100)

/// Convert the value 50 from the range 0..100 to the range 0..1, 
/// so this should result in a value around `0.5`.
let b: Float = RKMath.remap(50, 0, 100, 0, 1)