rotate_landmark_points: Rotate landmark points

View source: R/rotate_landmark_points.R

rotate_landmark_pointsR Documentation

Rotate landmark points

Description

Given a data.frame of landmarks in x, y, z, x, y, z... configuration and a rotation matrix, rotate the points using the matrix and reconstruct the original format.

Usage

rotate_landmark_points(M, rot_mat)

Arguments

M

data.frame of landmark points

rot_mat

3x3 numeric rotation matrix

Details

Currently this function assumes that there will be points for "eye", "sacrum", "hip", "knee", "ankle", and "foot".

Value

M points rotated using rot_mat


Middleton-Lab/KinematicAnalysis documentation built on March 27, 2022, 7:36 a.m.