TimingFunction

class TimingFunction

A TimingFunction is a function which specifies how a value progresses as a function of time. In Flood this function is represented by a cubic bezier curve which is implicitly assumed to begin at (0, 0) and end at (1,1).

  • The name of the timing function.

    Declaration

    var name: String { get }
  • The control points of the cubic bezier curve which define the timing function.

    Declaration

    var controlPoints: Array? { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Checks the timing functions for equality.

    Declaration

    func equals(_ lhs: TimingFunction) -> Bool

    Parameters

    lhs

    A timing function.

    lrhs

    Another timing function.

    Return Value

    true if the timing functions are equal, and false otherwise.