Learn R Programming

pcv (version 1.1.0)

getR: Creates rotation matrix to map a set vectors base1 to a set of vectors base2.

Description

In both sets vectors should be orthonormal.

Usage

getR(base1, base2)

Value

Rotation matrix (JxJ)

Arguments

base1

Matrix (JxA) with A orthonormal vectors as columns to be rotated (A <= J)

base2

Matrix (JxA) with A orthonormal vectors as columns, base1 should be aligned with