import { Quaternion } from "https://deno.land/x/threejs_4_deno@v121/src/math/Quaternion.d.ts";
Implementation of a quaternion. This is used for rotating things without incurring in the dreaded gimbal lock issue, amongst other advantages.
Methods
Sets this quaternion's x, y, z and w value from the provided array.
Sets this quaternion's x, y, z and w value from the provided array-like.
Sets this quaternion to a x b Adapted from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm.
Sets this quaternion from rotation specified by axis and angle. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm. Axis have to be normalized, angle is in radians.
Sets this quaternion from rotation component of m. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
Copies x, y, z and w into the provided array-like.