weldx.transformations.LocalCoordinateSystem.from_axis_vectors#

classmethod LocalCoordinateSystem.from_axis_vectors(x=None, y=None, z=None, coordinates=None, time=None, time_ref=None)#

Create a LCS from two or more coordinate axes.

If only two axes are provided, the third one is calculated under the assumption of a positively oriented coordinate system (right hand system).

Parameters:
Returns:

The new coordinate system

Return type:

LocalCoordinateSystem

Examples

Create a coordinate system from 3 orthogonal vectors:

>>> from weldx import LocalCoordinateSystem
>>>
>>> x = [2, 2, 0]
>>> y = [-8, 8, 0]
>>> z = [0, 0, 3]
>>>
>>> lcs = LocalCoordinateSystem.from_axis_vectors(x, y, z)

Create a coordinate system from 2 orthogonal vectors and let the third one be determined automatically:

>>> lcs = LocalCoordinateSystem.from_axis_vectors(x=x, z=z)