| 704 | /// \brief Returns the projection of the 2D point $p$ onto the 2D line $g$ under the assumption that the line is unitized. |
| 705 | |
| 706 | inline Point2D Project(const Point2D& p, const Line2D& g) |
| 707 | { |
| 708 | return (Point2D(p + !g.xy * (p ^ g))); |
| 709 | } |
| 710 | |
| 711 | // ============================================== |
| 712 | // Antiproject |