weldx.transformations.LocalCoordinateSystem.from_xz_and_orientation

classmethod LocalCoordinateSystem.from_xz_and_orientation(vec_x, vec_z, positive_orientation=True, coordinates=None, time=None, time_ref=None)

Construct a coordinate system from 2 vectors and an orientation.

Parameters
  • vec_x – Vector defining the x-axis

  • vec_z – Vector defining the z-axis

  • positive_orientation – Set to True if the orientation should be positive and to False if not (Default value = True)

  • coordinates – Coordinates of the origin (Default value = None)

  • time – Time data for time dependent coordinate systems (Default value = None)

  • time_ref – Reference Timestamp to use if time is Timedelta or pint.Quantity.

Returns

Local coordinate system

Return type

LocalCoordinateSystem