Origin.from_data
- classmethod Origin.from_data(data)
Construct a frame from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
Frame
– The constructed frame.
Examples
>>> data = {'point': [0.0, 0.0, 0.0], 'xaxis': [1.0, 0.0, 0.0], 'yaxis': [0.0, 1.0, 0.0]} >>> frame = Frame.from_data(data) >>> frame.point Point(0.000, 0.000, 0.000) >>> frame.xaxis Vector(1.000, 0.000, 0.000) >>> frame.yaxis Vector(0.000, 1.000, 0.000)