Mat.rotate

Applies a 2D rotation to this matrix.

  1. Mat!(T, N, N) rotate(T theta)
    struct Mat(T, size_t rowCount, size_t colCount)
    ref
    static if(rowCount == colCount)
    static if(N == 3 && isFloatingPoint!T)
    Mat!(T, N, N)
    rotate
    ()
    if (
    isNumeric!T &&
    rowCount > 0
    &&
    colCount > 0
    )
  2. Mat!(T, N, N) rotate(T x, T y, T z)

Parameters

theta T

The angle in radians.

Return Value

Type: Mat!(T, N, N)

A reference to this matrix, for method chaining.

Meta