| x
    | 
TPolygon Class Reference
  #include <hs.h>
| Public Member Functions | |
| TPolygon (int cap) | |
| TPolygon (int cap, TPolygon *R) | |
| Data Fields | |
| int | N | 
| double * | X | 
| double * | Y | 
Detailed Description
TPolygon is a polygon class. This class itself does not enforce convexness. However, when used for solving the stiff string model, all polygons are convex, as they are the results of current a first convex polygon by straight lines.
For the convenience of computation, the sequence of vertices are arranged so that they come in clockwise order starting from the leftmost (smallest x coordinate) vertex; in case two vertices are both leftmost the upper (larger y coordinate) one is placed at the start and the lower one is placed at the end.
The documentation for this class was generated from the following files:
- hs.h
- hs.cpp
Generated on Fri Oct 31 2025 07:10:01 for x by
 1.8.11
 1.8.11