Line.from_data

classmethod Line.from_data(data)[source]

Construct a frame from a data dict.

Parameters

data (dict) – The data dictionary.

Examples

>>> line = Line.from_data({'start': [0.0, 0.0, 0.0], 'end': [1.0, 0.0, 0.0]})
>>> line.end
Point(1.000, 0.000, 0.000)