Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

BezierPlugin.cubicToQuadratic()

BezierPlugin.cubicToQuadratic( a:Number, b:Number, c:Number, d:Number ) : Array

[static] Using the fixed midpoint approach, we return an array of 4 quadratic Beziers that closely approximates the cubic Bezier data provided.

Parameters

a: Number

starting anchor of the cubic Bezier

b: Number

first control point of the cubic Bezier

c: Number

second control point of the cubic Bezier

d: Number

final anchor of the cubic Bezier

Returns : Array

an array of 4 objects, one for each quadratic Bezier with a, b, and c properties

Details

Using the fixed midpoint approach, we return an array of 4 quadratic Beziers that closely approximates the cubic Bezier data provided. Each quadratic Bezier object contains a, b, and properties where a is the starting anchor value, b is the control point, and c is the ending anchor value.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×