A Triangle as Three Ordered Vertices
A triangle primitive uses three positions. Their order can indicate the orientation of the face under a rendering convention.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace an orientation
With x-right and y-up, \((0,0),(2,0),(0,1)\) form a counterclockwise order. Swapping the last two reverses it. Orientation predicates compute the corresponding sign.
Check a degenerate case
Three collinear points define zero area. A renderer can discard that triangle or apply documented special handling. See boundary-case tests for exercising such limits.[1]