Home Examples Installation Documentation Contact Help

Rx

Specification

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

Purpose & Params

Rotate a coordinate on the x-axis given a euler rotation matrix.

Example

    # Rotates the coordinate v 90 degrees on the x-axis
    v = np.array([0,0,1])
    radian_x        = 0.5 * np.pi
    rotation_matrix = mat3.Rx(radian_x)
    print(np.dot(rotation_matrix, v))

output:

   [ 0.000000e+00 -1.000000e+00  6.123234e-17]