Skip to contents

Vector3 Rotate By Quaternion

Usage

vector3_rotate_by_quaternion(v, q)

Arguments

v

A numeric vector of length 3.

q

A numeric vector of length 4.

Value

A numeric vector of length 3

Examples

vector3_rotate_by_quaternion(c(0, 0, 0), c(0, 0, 0, 1))
#> x y z 
#> 0 0 0