translateMat

Creates a translation matrix from a 2d/3d Vector

  1. M translateMat(V v)
    @nogc pure nothrow
    M
    translateMat
    (
    M = Mat4f
    V = Vec3f
    )
    (
    V v
    )
    if (
    isVector!V &&
    V.dim <= 3
    &&
    )
  2. M translateMat(T x, T y, T z)

Parameters

v V

2d/3d Vector Returns a translation matrix

Meta