Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BezierCurve

Class used to represent a Bezier curve

Hierarchy

  • BezierCurve

Index

Methods

Methods

Static Interpolate

  • Interpolate(t: number, x1: number, y1: number, x2: number, y2: number): number
  • Returns the cubic Bezier interpolated value (float) at "t" (float) from the given x1, y1, x2, y2 floats

    Parameters

    • t: number

      defines the time

    • x1: number

      defines the left coordinate on X axis

    • y1: number

      defines the left coordinate on Y axis

    • x2: number

      defines the right coordinate on X axis

    • y2: number

      defines the right coordinate on Y axis

    Returns number

    the interpolated value