import { Quaternion } from "https://deno.land/x/gmath@0.1.12/src/quaternion.ts";
Properties
vector: Vector3
Methods
add(other: Quaternion | number): Quaternion
clone(): Quaternion
Creates a new Quaternion with the same values
div(other: number): Quaternion
dot(other: Quaternion): number
eq(other: Quaternion): boolean
invert(): Quaternion
is_finite(): boolean
mag(): number
mag2(): number
mul(other: Quaternion | number): Quaternion
neg(): Quaternion
nlerp(other: Quaternion, alpha: number): Quaternion
normal(): Quaternion
set(scalar: number, vector: Vector3): Quaternion
slerp(other: Quaternion, alpha: number): Quaternion
sub(other: Quaternion | number): Quaternion
toString(): string
Static Methods
between(a: Vector3, b: Vector3): Quaternion
fromAxisAngle(axis: Vector3, angle: Angle)
fromMatrix3(matrix: Matrix3): Quaternion
lookAt(dir: Vector3, up: Vector3): Quaternion
one(): Quaternion
zero(): Quaternion