Learn R Programming

RSpincalc (version 1.0.2)

Qnormalize: Quaternion normalization

Description

Qnormalize performs a quaternion normalization.

Usage

Qnormalize(Q)

Arguments

Q
Quaternion (Q) vector [q1, q2, q3, q4].

Value

Q
Normalized quaternion (Q) vector [q1, q2, q3, q4].

Examples

Run this code
Q <- c(-0.1677489, -0.7369231, -0.3682588, 0.5414703)
Qnormalize(Q)

Run the code above in your browser using DataLab