rotMat

Creates a rotation matrix from a axis and angle in radians

  1. M rotMat(V v, T angle)
  2. M rotMat(T x, T y, T z, U angle)
    @nogc pure nothrow
    M
    rotMat
    (
    M = Mat4f
    T = float
    U = float
    )
    (
    T x
    ,
    T y
    ,
    T z
    ,)
    if (
    is4dMat!M &&
    is(T : real)
    &&
    is(U : real)
    )
  3. M rotMat(Q q)

Parameters

x T

X coord of rotation axis

y T

Y coord of rotation axis

z T

Z coord of rotation axis

angle U

angle in radians Returns a 3d rotation matrix

Meta