CubicBezier source

Specializes Montage

Properties

p0 :Property source

First control point in bezier curve.

Default Value:
  • {number} new Point().init(0, 0)

p1 :Property source

Second control point in bezier curve.

Default Value:
  • {number} new Point().init(0, 0)

p2 :Property source

Third control point in bezier curve.

Default Value:
  • {number} new Point().init(1, 1)

p3 :Property source

Fourth control point in bezier curve.

Default Value:
  • {number}M ontage.create(Point).init(1, 1)

Methods

callDelegateMethod(name) source

This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"

Parameters:
Name Type Description
name string
Inherited From:

equals(anObject) → {boolean} source

Returns true if two objects are equal, otherwise returns false.

Parameters:
Name Type Description
anObject Object

The object to compare for equality.

Inherited From:
Returns: boolean

Returns true if the calling object and anObject are identical and their uuid properties are also equal. Otherwise, returns false.

init(controlPoints) source

Parameters:
Name Type Description
controlPoints Array

Control points.

Returns:

itself

makeScaffolding(t) source

Parameters:
Name Type Description
t number

Control point.

position(t) source

Parameters:
Name Type Description
t number

Control point.

Returns:

itself or new Point().init(this.p0.x * b1 + this.p1.x * b2 + this.p2.x * b3 + this.p3.x * b4, this.p0.y * b1 + this.p1.y * b2 + this.p2.y * b3 + this.p3.y * b4)

split(t) source

Parameters:
Name Type Description
t number

Control point.

Returns:

CubicBezier.create(CubicBezier).init([this.p0, this.p01, this.p012, this.p0123])

splitToTimingFunction(t) source

Parameters:
Name Type Description
t number

Control point.

Returns:

CubicBezier.create(CubicBezier).init([new Point().init(this.p01.x / xScale, this.p01.y / yScale), new Point().init(this.p012.x / xScale, this.p012.y / yScale)])

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.