Group Abstract Group Abstract

Message Boards Message Boards

0
|
931 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Unexpected result from Area of polygon?

Posted 21 days ago

The area of the quadrilateral formed by these four points isn’t 2, is it?

pts = {{0, 0}, {1, -1}, {1, 1}, {4, 0}}
Area[Polygon[pts]]

enter image description here

POSTED BY: Jim Clinton
3 Replies

The points are in the wrong order

pts = {{0, 0}, {1, -1}, {4, 0}, {1, 1}};

Area @ Polygon[pts]

4

POSTED BY: Frank Kampas
Posted 21 days ago

To illustrate Frank's point:

POSTED BY: Hans Milton
Posted 20 days ago

Thank you! So it's determined by the order of coordinates. Thanks!

POSTED BY: Jim Clinton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard