pub fn unit_normal(tangent: Point2D) -> Point2D
Computes the 2D unit normal vector (-dy, dx) for a given tangent vector.