weldx.transformations.LocalCoordinateSystem.from_xy_and_orientation

classmethod LocalCoordinateSystem.from_xy_and_orientation(vec_x, vec_y, 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_y – Vector defining the y-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