prep for 1.2.0 release updates
This commit is contained in:
@@ -59,17 +59,11 @@ internal func lyrebirdBufferRead(
|
||||
case .cubic:
|
||||
let intPhase: Int = Int(phase.rounded(.down))
|
||||
let t: Double = phase - Double(intPhase)
|
||||
let t2: Double = t * t
|
||||
let t3: Double = t2 * t
|
||||
let pM1: Double = frame(intPhase - 1)
|
||||
let p0: Double = frame(intPhase)
|
||||
let p1: Double = frame(intPhase + 1)
|
||||
let p2: Double = frame(intPhase + 2)
|
||||
let catmullRomHalf: Double = 0.5
|
||||
return catmullRomHalf * ((2 * p0)
|
||||
+ (-pM1 + p1) * t
|
||||
+ (2 * pM1 - 5 * p0 + 4 * p1 - p2) * t2
|
||||
+ (-pM1 + 3 * p0 - 3 * p1 + p2) * t3)
|
||||
return catmullRomCubic(pM1, p0, p1, p2, t: t)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user