deserializeCurve

Parses a parameter string to a Curve type.

Signatures

  •   deserializeCurve( str )

Example

 const curve = deserializeCurve('<[0,0,0]>->bezier(<[1,0,0]>,<[1,1,0]>,<[0,0,1]>)');
 

Parameters

str

String that must contain the string representation of a paramate curve.

Return value

An object of type Curve containing the value content of str or 'undefined' if the parsing was not successful.

See also