Triangles on a Rectangle
Given a rectangle with opposite corners `(0,0)` and `(w,h)`, and two points `(x1,y1)` and `(x2,y2)` on its boundary, choose the rectangle side containing both points. The largest possible area of a triangle whose base is the segment between the points and whose third vertex is a rectangle corner is twice the triangle area. Return that doubled area. The points are guaranteed to lie on the boundary.