Learn R Programming

ravetools (version 0.2.2)

new_quaternion: Create a Quaternion instance to store '3D' rotation

Description

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

Usage

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

as_quaternion(q)

Value

A Quaternion instance

Arguments

x, y, z, w

numeric of length one

q

R object to be converted to Quaternion

See Also

new_vector3, new_matrix4