in reply to Clockwise or Counter-clockwise
Given 3 2d non-colinear points in sequence, create the 3d vectors v1 = p1->p2 and v2 = p1->p3 on the z0 plane. calculate v3 = v1 X v2. if v3 has positive z then they are in counter-clockwise order, negative z then clockwise.
this is the right-hand rule, place your right hand on p1->p2 and curl your fingers onto p2->p3, if your thumb points up they go counter clockwise, if it points down they go clockwise.
i really need to look for an HTML equation editor...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): Clockwise or Counter-clockwise
by FoxtrotUniform (Prior) on Feb 19, 2003 at 06:08 UTC | |
by zengargoyle (Deacon) on Feb 19, 2003 at 06:53 UTC | |
by tall_man (Parson) on Feb 19, 2003 at 14:55 UTC | |
by thor (Priest) on Feb 19, 2003 at 16:14 UTC |