Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CubicBezier

Hierarchy

  • CubicBezier

Index

Constructors

constructor

  • new CubicBezier(x2: number, y2: number, x3: number, y3: number): CubicBezier

Properties

x2

x2: number

x3

x3: number

y2

y2: number

y3

y3: number

Methods

easingFunction

interpolate

  • interpolate(progress: number): number

Static getBezierPoint

  • getBezierPoint(progress: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number): point
  • Parameters

    • progress: number
    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • x3: number
    • y3: number
    • x4: number
    • y4: number

    Returns point

Static getPoint

Static interpolateProgress

  • interpolateProgress(progress: number, x2: number, y2: number, x3: number, y3: number): number
  • Parameters

    • progress: number
    • x2: number
    • y2: number
    • x3: number
    • y3: number

    Returns number

    The interpolated value.

Static makeEasingFunction

  • makeEasingFunction(p0: number, p1: number, p2: number, p3: number): Function
  • Parameters

    • p0: number
    • p1: number
    • p2: number
    • p3: number

    Returns Function

    A function that accepts a progresss value.

Static makeEasingFunctionFromString

  • makeEasingFunctionFromString(value: string): Function