Class managing the borders of a single outer or inner of a bordered polygon.
Instances can only be created by calls to TSLBorderedPolygon::outerBorderInfo() and TSLBorderedPolygon::innerBorderInfo(int).
|
| void | destroy () |
| bool | side (int position) const |
| bool | side (int position, bool orientation) |
| int | size () const |
◆ destroy()
| void TSLBorderInfo::destroy |
( |
| ) |
|
◆ side() [1/2]
| bool TSLBorderInfo::side |
( |
int | position | ) |
const |
Queries the orientation of a side.
- Parameters
-
| position | Which side to return orientation for. Refers to edge between the position'th coord and ((position+1) mod size)'th coord in the associated outer/inner coord set. |
- Returns
- true to indicate the border is inside an edge, and false to indicate the border is outside the edge.
◆ side() [2/2]
| bool TSLBorderInfo::side |
( |
int | position, |
|
|
bool | orientation ) |
Set the orientation of a side.
- Parameters
-
| position | Which side to set orientation for. Refers to edge between the position'th coord and ((position+1) mod size)'th coord in the associated outer/inner coord set. |
| orientation | true to indicate the border is inside an edge, and false to indicate the border is outside the edge. |
- Returns
- true success, false on error.
◆ size()
| int TSLBorderInfo::size |
( |
| ) |
const |
Query the number of sides in the associated outer/inner.