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>. <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 @return this

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

Meta