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

jospercomp shared this question 6 months ago
Answered

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

Best Answer
photo

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

Comments (8)

photo
1

Comparing two registered values of pathparameter()

photo
1

I dont understand how work path parameter command.

photo
photo
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?

photo
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.

photo
photo
1

so you know

photo
1

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

photo
1

Thank you so much!!!

photo
© 2021 International GeoGebra Institute