Matrix.rotation

Returns an identity matrix with an applied rotate_axis around an arbitrary axis (nxn matrices, n >= 3).

  1. Matrix rotation(real alpha, Vector!(mt, 3) axis)
  2. Matrix rotation(real alpha, mt x, mt y, mt z)
    struct Matrix(type, int rows_, int cols_)
    @safe pure nothrow static
    static if((rows == cols) && (rows >= 3))
    static if(isFloatingPoint!mt)
    rotation
    (
    real alpha
    ,,,)
    if (
    (rows_ > 0) &&
    (cols_ > 0)
    )

Meta