weldx.transformations.local_cs.LocalCoordinateSystem.from_xyz

classmethod LocalCoordinateSystem.from_xyz(vec_x, vec_y, vec_z, coordinates=None, time=None, time_ref=None)

Construct a local coordinate system from 3 vectors defining the orientation.

Parameters
  • vec_x – Vector defining the x-axis

  • vec_y – Vector defining the y-axis

  • vec_z – Vector defining the z-axis

  • 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