Skip to contents

Create instances that mimic the 'three.js' syntax.

Usage

new_quaternion(x = 0, y = 0, z = 0, w = 1)

as_quaternion(q)

Arguments

x, y, z, w

numeric of length one

q

R object to be converted to Quaternion

Value

A Quaternion instance