Matrix.axisAngle

Returns rotation matrix decided by its rotation axis and angle.

  1. Matrix axisAngle(Vector!(T, 3) axis, Angle angle)
    struct Matrix(T, uint U, uint V)
    static
    static if(U == V)
    static if(U == 3)
    axisAngle
    (
    const Vector!(T, 3) axis
    ,
    const Angle angle
    )
    if (
    __traits(isArithmetic, T)
    )
  2. Matrix axisAngle(Vector!(T, 3) v, Angle angle)

Parameters

axis Vector!(T, 3)

rotation axis vector, which must be normalized

angle Angle

rotation angle

Return Value

Type: Matrix

rotation matrix

Meta