| 504 | /// \related Vector2D |
| 505 | |
| 506 | inline Vector2D Project(const Vector2D& a, const Vector2D& b) |
| 507 | { |
| 508 | return (b * Dot(a, b)); |
| 509 | } |
| 510 | |
| 511 | /// \brief Returns <b>a</b> − (<b>a</b> ⋅ <b>b</b>)<b>b</b>, which is the rejection of $a$ from $b$ under the assumption that the magnitude of $b$ is one. |
| 512 | /// \related Vector2D |