Quat extension

on
  • Quaternion

Methods

addTime(Vector3 v, double t) → Quaternion

Available on Quaternion, provided by the Quat extension

equals(Quaternion q) bool

Available on Quaternion, provided by the Quat extension

Is q equal to this
eulerFromXYZ(double x, double y, double z) → Quaternion

Available on Quaternion, provided by the Quat extension

Set Quant using Euler equation
invert(Quaternion q) → Quaternion

Available on Quaternion, provided by the Quat extension

Inverse the current Quant by q
mult(Quaternion quat, [Quaternion? target]) → Quaternion

Available on Quaternion, provided by the Quat extension

multiply(Quaternion q, [Quaternion? p]) → Quaternion

Available on Quaternion, provided by the Quat extension

Multiply the this by q and return either p or this
multiplyQuaternions(Quaternion a, Quaternion b) → Quaternion

Available on Quaternion, provided by the Quat extension

Multiply a by b
setFromUnitVectors(Vector3 v1, Vector3 v2) → Quaternion

Available on Quaternion, provided by the Quat extension

Set Quant from v1 and v2
testDiff(Quaternion q) bool

Available on Quaternion, provided by the Quat extension

Is q the same as this
toVector3() → Vector3

Available on Quaternion, provided by the Quat extension

Convert Quant to Vec3
vmult(Vector3 v, [Vector3? target]) → Vector3

Available on Quaternion, provided by the Quat extension

Multiply the quaternion by a vector