rotate: Rotates 3D vectors using quaternions

Description Usage Arguments Value Author(s) Examples

Description

Rotates a three-column matrix whose rows are vectors in 3D space, using quaternions

Usage

1
rotate(x, H)

Arguments

x

A matrix of three columns whose rows are points in 3D space

H

A quaternion. Does not need to have unit modulus

Value

Returns a matrix of the same size as x

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
6
7

onion documentation built on July 11, 2017, 9:04 a.m.