Mat.rotate

Applies a 3D rotation to this matrix about the x, y, and then z axes.

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

Parameters

x T

The angle to rotate about the x-axis.

y T

The angle to rotate about the y-axis.

z T

The angle to rotate about the z-axis.

Return Value

Type: Mat!(T, N, N)

A reference to this matrix, for method chaining.

Meta