Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 291239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:04:16+00:00 2026-05-12T06:04:16+00:00

Having a list of points, how do I find if they are in clockwise

  • 0

Having a list of points, how do I find if they are in clockwise order?

For example:

point[0] = (5,0)
point[1] = (6,4)
point[2] = (4,5)
point[3] = (1,5)
point[4] = (1,0)

would say that it is anti-clockwise (or counter-clockwise, for some people).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:04:16+00:00Added an answer on May 12, 2026 at 6:04 am

    Some of the suggested methods will fail in the case of a non-convex polygon, such as a crescent. Here’s a simple one that will work with non-convex polygons (it’ll even work with a self-intersecting polygon like a figure-eight, telling you whether it’s mostly clockwise).

    Sum over the edges, (x2 − x1)(y2 + y1). If the result is positive the curve is clockwise, if it’s negative the curve is counter-clockwise. (The result is twice the enclosed area, with a +/- convention.)

    point[0] = (5,0)   edge[0]: (6-5)(4+0) =   4
    point[1] = (6,4)   edge[1]: (4-6)(5+4) = -18
    point[2] = (4,5)   edge[2]: (1-4)(5+5) = -30
    point[3] = (1,5)   edge[3]: (1-1)(0+5) =   0
    point[4] = (1,0)   edge[4]: (5-1)(0+0) =   0
                                             ---
                                             -44  counter-clockwise
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

by simple I mean, having buttons: bold, italic, numbered list bullet point list indent
I am having list of char array by that I want to store all
Having a list of data object and something visual to represent each, where would
EDIT ive got it almost, having and error message now that it can't find
I'm having issues with my A-star implemention. It does find path from my point
I am having some slight difficulty with the following code: Lagrange[list_] := Module[{points =
I'm having trouble selecting a list that is mixed with javascript. The original code
Im having a list of student names in a table , in the same
Consider having a list - Ferrari, Mclaren, Red Bull on A2, A5, A8 cells,
I am having a list like <li style=display: list-item; id=listChoices> <label class=topspace>Enter the Choices</label>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.