Function fromRotationTranslation

  • Creates a matrix from a quaternion rotation and vector translation This is equivalent to (but much faster than):

    mat4.identity(dest);
    mat4.translate(dest, vec);
    let quatMat = mat4.create();
    quat4.toMat4(quat, quatMat);
    mat4.multiply(dest, quatMat);

    Parameters

    • out: mat4

      mat4 receiving operation result

    • q: any

      Rotation quaternion

    • v: ReadonlyVec3

      Translation vector

    Returns mat4

    out

Generated using TypeDoc