Function rotate3d

rotate3d(theta, v) returns a 3D rotation by an angle $\theta$ around a unit axis $v$.

  • Parameters

    • theta: Num

      angle of rotation (in radians)

    • v: VecN

      axis of rotation (unit vector)

    Returns Num[][]

    3D rotation matrix