Home Examples Installation Documentation Contact Help

Rx

Specification

Location Author Maintained by
isl/math/quaternion.py Kenny Erleben DIKU

Purpose & Params

Given a radian, the function returns a quaternion rotation on the x-axis given the orientation. Get more information about rotation on the quaternion rotation documentation webpage.

Example

    radian = (0.5 * np.pi) / 2
    print(quat.Rx(radian))

output:

   [0.92387953 0.38268343 0.         0.        ]