classmethod LocalCoordinateSystem.from_euler(sequence, angles, degrees=False, coordinates=None, time=None, time_ref=None)#

Construct a local coordinate system from an euler sequence.

This function uses scipy.spatial.transform.Rotation.from_euler method to define the coordinate systems orientation. Take a look at its documentation, if some information is missing here. The related parameter docs are a copy of the scipy documentation.

  • sequence – Specifies sequence of axes for rotations. Up to 3 characters belonging to the set {‘X’, ‘Y’, ‘Z’} for intrinsic rotations, or {‘x’, ‘y’, ‘z’} for extrinsic rotations. Extrinsic and intrinsic rotations cannot be mixed in one function call.

  • angles – Euler angles specified in radians (degrees is False) or degrees (degrees is True). For a single character seq, angles can be: - a single value - array_like with shape (N,), where each angle[i] corresponds to a single rotation - array_like with shape (N, 1), where each angle[i, 0] corresponds to a single rotation For 2- and 3-character wide seq, angles can be: - array_like with shape (W,) where W is the width of seq, which corresponds to a single rotation with W axes - array_like with shape (N, W) where each angle[i] corresponds to a sequence of Euler angles describing a single rotation

  • degrees – If True, then the given angles are assumed to be in degrees. Default is False.

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

  • time (Union[DatetimeIndex, datetime64, List[str], Time, TimedeltaIndex, Quantity, timedelta64, Timestamp, str, TimeDependent, None]) – Time data for time dependent coordinate systems (Default value = None)

  • time_ref (Union[Timestamp, str, Time, None]) – Optional reference timestamp if time is a time delta.


Local coordinate system

Return type: