See the LICENSE file for licensing information.
Clamps the value to the min...max range.
func clamp<T: Comparable> (_ value: T, min: T, max: T) -> T
clamp(3.3, min: 2.0, max: 5.0)
Linear interpolation.
func lerp(_ a: Float, _ b: Float, _ t: Float) -> Float
func lerp(_ a: CGFloat, _ b: CGFloat, _ t: CGFloat) -> CGFloat
func lerp(_ a: Double, _ b: Double, _ t: Double) -> Double
func lerp<T: SIMD>(_ a: T, _ b: T, _ t: T.Scalar) -> T
where T.Scalar: FloatingPoint
Struct that calculates average of the last N accumulated values.
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
Postfix degrees-to-radian operator named °
let angleInRadians: Float = 90°
Postfix percent operator named %
/// The quarter variable is assigned the value 0.25
let quarter: Float = 25%
func quadraticEaseIn<T: FloatingPoint>(_ t: T) -> T
func quadraticEaseOut<T: FloatingPoint>(_ t: T) -> T
func quadraticEaseInOut<T: FloatingPoint>(_ t: T) -> T
func cubicEaseIn<T: FloatingPoint>(_ t: T) -> T
func cubicEaseOut<T: FloatingPoint>(_ t: T) -> T
func cubicEaseInOut<T: FloatingPoint>(_ t: T) -> T
public func quarticEaseIn<T: FloatingPoint>(_ t: T) -> T
func quarticEaseOut<T: FloatingPoint>(_ t: T) -> T
func quarticEaseInOut<T: FloatingPoint>(_ t: T) -> T
func quinticEaseIn<T: FloatingPoint>(_ t: T) -> T
func quinticEaseOut<T: FloatingPoint>(_ t: T) -> T
func quinticEaseInOut<T: FloatingPoint>(_ t: T) -> T