On this page

Function fromTranslation

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

    mat4.identity(dest);
    mat4.translate(dest, dest, vec);
    

    Parameters

    Returns mat4

    out

Was this helpful?
SDK JS
Reference
fromTranslation