deserializeRay

Parses a parameter string to a Ray type.

Signatures

  •   deserializeRay( str )

Example

 const ray = deserializeRay('ray(<[1,1,1]>,<[-1,0,0]>)');
 

Parameters

str

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

Return value

An object of type Ray containing the value content of the first part of str.

See also