Matrix3x2d.rotateTo

Apply a rotation transformation to this matrix that rotates the given normalized <code>fromDir</code> direction vector to point along the normalized <code>toDir</code>, and store the result in <code>dest</code>. <p> If <code>M</code> is <code>this</code> matrix and <code>R</code> the rotation matrix, then the new matrix will be <code>M * R</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * R * v</code>, the rotation will be applied first!

@param fromDir the normalized direction which should be rotate to point along <code>toDir</code> @param toDir the normalized destination direction @param dest will hold the result @return dest

  1. Matrix3x2d rotateTo(Vector2d fromDir, Vector2d toDir, Matrix3x2d dest)
    struct Matrix3x2d
  2. Matrix3x2d rotateTo(Vector2d fromDir, Vector2d toDir)

Meta