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

View source: R/class-Quaternion.R

new_quaternionR Documentation

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)

Arguments

x, y, z, w

numeric of length one

q

R object to be converted to Quaternion

Value

A Quaternion instance

See Also

new_vector3, new_matrix4


ravetools documentation built on Sept. 11, 2024, 9:06 p.m.