linked linked linkedin whatsapp remove
Feedback

Computer Science

To construct a polygon with three points x1, y1, x2, y2, x3, and y3, use ________.

New Polygon(x1, y1, x2, y2, x3, y3)
New Polygon(x1, y2, x3, y1, y2, y3)
Polygon polygon = new Polygon(); polygon.getPoints().addAll(x1, y1, x2, y2, x3, y3)
Polygon polygon = new Polygon(); polygon.getPoints().addAll(x1, y2, x3, y1, y2, y3

Answer:
New Polygon(x1, y1, x2, y2, x3, y3)
Polygon polygon = new Polygon(); polygon.getPoints().addAll(x1, y1, x2, y2, x3, y3)

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one