RU: Calculate rotation matrix

View source: R/utils-MuscleTernary.R

RUR Documentation

Calculate rotation matrix

Description

Calculate the rotation matrix required to rotate vector A onto vector B. Both vectors will be normalized to a unit vectors prior to rotation. See: http://math.stackexchange.com/a/897677/6965

Usage

RU(A, B)

Arguments

A

Vector (usually the unit vector)

B

Vector

Value

U rotation matrix between A and B


Middleton-Lab/MuscleTernary documentation built on Dec. 4, 2023, 10:28 p.m.