Matrix.translation

Constructs 3d translation matrix

  1. MatType translation(T[2] s, ...)
  2. MatType translation(T[3] v, ...)
    struct Matrix(T, size_t H, size_t W)
    static
    static if(!(isSquare && W == 2 && isFloatingPoint!T))
    static if(!(isSquare && W == 3 && isFloatingPoint!T))
    static if(isSquare && W == 4 && isFloatingPoint!T)
    translation
    (
    T[3] v
    ,)
    if (
    isNumeric!T &&
    W > 0
    &&
    H > 0
    )

Meta