# BezierCurveEase

## Constructors

### constructor

Find examples in Playground
• new BezierCurveEase(x1?: number, y1?: number, x2?: number, y2?: number): BezierCurveEase
• Instantiates a bezier function

see

http://cubic-bezier.com/#.17,.67,.83,.67

#### Parameters

• ##### Optional x1: number

Defines the x component of the start tangent in the bezier curve

• ##### Optional y1: number

Defines the y component of the start tangent in the bezier curve

• ##### Optional x2: number

Defines the x component of the end tangent in the bezier curve

• ##### Optional y2: number

Defines the y component of the end tangent in the bezier curve

## Properties

### x1

Find examples in Playground
x1: number

Defines the x component of the start tangent in the bezier curve

### x2

Find examples in Playground
x2: number

Defines the x component of the end tangent in the bezier curve

### y1

Find examples in Playground
y1: number

Defines the y component of the start tangent in the bezier curve

### y2

Find examples in Playground
y2: number

Defines the y component of the end tangent in the bezier curve

### Static EASINGMODE_EASEIN

Find examples in Playground
EASINGMODE_EASEIN: number

Interpolation follows the mathematical formula associated with the easing function.

### Static EASINGMODE_EASEINOUT

Find examples in Playground
EASINGMODE_EASEINOUT: number

Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half.

### Static EASINGMODE_EASEOUT

Find examples in Playground
EASINGMODE_EASEOUT: number

Interpolation follows 100% interpolation minus the output of the formula associated with the easing function.

## Methods

### ease

Find examples in Playground
• Given an input gradient between 0 and 1, this returns the corresponding value of the easing function.

#### Parameters

Defines the value between 0 and 1 we want the easing value for

#### Returns number

the corresponding value on the curve defined by the easing function

### getEasingMode

Find examples in Playground
• getEasingMode(): number

### setEasingMode

Find examples in Playground
• setEasingMode(easingMode: number): void
• Sets the easing mode of the current function.

#### Parameters

• ##### easingMode: number

Defines the willing mode (EASINGMODE_EASEIN, EASINGMODE_EASEOUT or EASINGMODE_EASEINOUT)

#### Returns void

Generated using TypeDoc