pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/easing/ease.go (about)

     1  // Package easing contains easing functions
     2  package easing
     3  
     4  // ////////////////////////////////////////////////////////////////////////////////// //
     5  //                                                                                    //
     6  //                         Copyright (c) 2022 ESSENTIAL KAOS                          //
     7  //      Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>     //
     8  //                                                                                    //
     9  // ////////////////////////////////////////////////////////////////////////////////// //
    10  
    11  import (
    12  	"math"
    13  )
    14  
    15  // ////////////////////////////////////////////////////////////////////////////////// //
    16  
    17  // DoublePi is 2 * Pi
    18  const DoublePi = math.Pi * 2
    19  
    20  // ////////////////////////////////////////////////////////////////////////////////// //
    21  
    22  // Easing is type for any easing function
    23  // t - current time
    24  // b - start value
    25  // c - changes in value
    26  // d - duration
    27  type Easing func(t, b, c, d float64) float64
    28  
    29  // ////////////////////////////////////////////////////////////////////////////////// //