Skip to main content

Hobby

hobby-to-cubic-open​

hobby-to-cubic-open() 

Calculates a bezier spline for an open Hobby curve through a list of points. Returns an array of beziers

points:

​

List of points

ta:

​

Outgoing tension per point

tb:

​

Incoming tension per point

The rho function of the form (float, float) => float

omega:

​

Tuple of the curl at the start and end of the curve (start, end) as floats

hobby-to-cubic-closed​

hobby-to-cubic-closed() 

Calculates a bezier spline for a closed Hobby curve through a list of points. Returns an array of beziers.

points:

​

List of points

ta:

​

Outgoing tension per point

tb:

​

Incoming tension per point

rho:

​

The rho function of the form (float, b) => float

hobby-to-cubic​

hobby-to-cubic() 

Calculates a bezier spline for a Hobby curve through a list of points. Returns an array of beziers.

points:

​

List of points

ta:

​

Outgoing tension per point

tb:

​

Incoming tension per point

rho:

​

The rho function of the form (float, float) => float

omega:

​

Tuple of the curl at the start and end of the curve (start, end) as floats

close:

​

Close the curve