Ry
Specification
Location | Author | Maintained by |
---|---|---|
isl/math/matrix3.py | Kenny Erleben | DIKU |
Purpose & Params
Rotate a coordinate on the y-axis given a euler rotation matrix.
Example
# Rotates the coordinate v 90 degrees on the y-axis
v = np.array([1,0,0])
radian_y = 0.5 * np.pi
rotation_matrix = mat3.Ry(radian_y)
print(np.dot(rotation_matrix, v))
output:
[ 6.123234e-17 0.000000e+00 -1.000000e+00]