Skip to contents

Rotate points in 3D using Rodrigues' formula

Usage

rotate_points_3d(points, angle, axis = c(0, 0, 1))

Arguments

points

Matrix (N x 3)

angle

Angle in radians

axis

Rotation axis vector (length 3)

Value

Rotated matrix (N x 3)