struct point2d { double x; double y; }; struct triangle { struct point2d a; struct point2d b; struct point2d c; };