# How to determine the direction of the path of a set of points of a polygon?

jospercomp shared this question 2 years ago

How to determine the direction of the path of a set of points of a polygon?

If the direction is clockwise, return 1

If the direction is counterclockwise return -1

see attachment (Realization in ggb of the favored solution in the hint of Michael Borcherds)

1

Comparing two registered values of pathparameter()

1

I dont understand how work path parameter command.

2
1

I think Michael or I misunderstood the question

Do you want to know if a point in the sides of a polygon moves in one direction or the opposite?

Or do you want to know if a polygon is oriented clockwise?

1

If the path of the order of the points of a polygon starting from any point of the polygon rotates clockwise or counterclockwise.

I know if a the points list of a polygon is oriented clockwise or counterclockwise.

The Shoelace Area formula without absolute value have two response same value positive or negative.

If the value is positive the direction is counterclockwise.If the value is negative, the direction is clockwise.

1

so you know

1

see attachment (Realization in ggb of the favored solution in the hint of Michael Borcherds)

1

Thank you so much!!!