rotMat

Creates a rotation matrix from a axis and angle in radians

  1. M rotMat(V v, T angle)
    @nogc pure nothrow
    M
    rotMat
    (
    M = Mat4f
    V = Vec3f
    T = float
    )
    (
    V v
    ,)
    if (
    isVector!V &&
    V.dim <= 3
    &&
    &&
    __traits(isFloating, T)
    )
  2. M rotMat(T x, T y, T z, U angle)
  3. M rotMat(Q q)

Parameters

v V

Rotation axis

angle T

angle in radians Returns a 3d rotation matrix

Meta