SimulatedAnimation
public struct SimulatedAnimation<Value, T> : Animation where Value : VectorConvertible, T : SimulationFunction, Value.VectorType == T.VectorType
An animation that is powered by a simulation function (e.g. a spring or decay function).
-
Initializes a new animation with given initial state.
Declaration
Swift
public init(function: T, value: Value, velocity: Value)
-
Declaration
Swift
public mutating func advance(by time: Double)
-
Declaration
Swift
public var value: Value { get }
-
Declaration
Swift
public var velocity: Value { get }
-
Declaration
Swift
public var isFinished: Bool { get }