quat: Create a quaternion

View source: R/quat.R

quatR Documentation

Create a quaternion

Description

Creates a quaternion, a four-dimensional number that represents 3D rotation well. The values underneath the quaternions are not interpretable for the naive user; however, one can learn how to read these values. See the vignette [TODO: link vignette] for an explanation.

Usage

quat(w, x, y, z)

axis_angle(axis, angle)

Arguments

w, x, y, z

Numeric vectors of the quaternion values. It is rare to need to access these fields.

axis, angle

Define a quaternion using axis-angle convention


MrMallIronmaker/dddr documentation built on May 11, 2022, 8:39 p.m.