Skip to contents

Calculate rotation matrix from non-zero vectors

Usage

calculate_rotation(vec_from, vec_to)

Arguments

vec_from

original vector, length of 3

vec_to

vector after rotation, length of 3

Value

A four-by-four transform matrix