dw::core::Shape implemtation for polygons.
More...
#include <types.hh>
|
int | zOfVectorProduct (int x1, int y1, int x2, int y2) |
| Return the z-coordinate of the vector product of two vectors, whose z-coordinate is 0 (so that x and y of the vector product is 0, too). More...
|
|
bool | linesCross0 (int ax1, int ay1, int ax2, int ay2, int bx1, int by1, int bx2, int by2) |
| Return, whether the line, limited by (ax1, ay1) and (ax2, ay2), crosses the unlimited line, determined by two points (bx1, by1) and (bx2, by2). More...
|
|
bool | linesCross (int ax1, int ay1, int ax2, int ay2, int bx1, int by1, int bx2, int by2) |
| Return, whether the line, limited by (ax1, ay1) and (ax2, ay2), crosses the line, limited by (bx1, by1) and (bx2, by2). More...
|
|
dw::core::Shape implemtation for polygons.
Definition at line 104 of file types.hh.
◆ Polygon()
dw::core::Polygon::Polygon |
( |
| ) |
|
◆ ~Polygon()
dw::core::Polygon::~Polygon |
( |
| ) |
|
◆ addPoint()
void dw::core::Polygon::addPoint |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ draw()
◆ isPointWithin()
bool dw::core::Polygon::isPointWithin |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
◆ linesCross()
bool dw::core::Polygon::linesCross |
( |
int |
ax1, |
|
|
int |
ay1, |
|
|
int |
ax2, |
|
|
int |
ay2, |
|
|
int |
bx1, |
|
|
int |
by1, |
|
|
int |
bx2, |
|
|
int |
by2 |
|
) |
| |
|
private |
Return, whether the line, limited by (ax1, ay1) and (ax2, ay2), crosses the line, limited by (bx1, by1) and (bx2, by2).
Definition at line 189 of file types.cc.
References _MSG.
◆ linesCross0()
bool dw::core::Polygon::linesCross0 |
( |
int |
ax1, |
|
|
int |
ay1, |
|
|
int |
ax2, |
|
|
int |
ay2, |
|
|
int |
bx1, |
|
|
int |
by1, |
|
|
int |
bx2, |
|
|
int |
by2 |
|
) |
| |
|
private |
Return, whether the line, limited by (ax1, ay1) and (ax2, ay2), crosses the unlimited line, determined by two points (bx1, by1) and (bx2, by2).
TODO Some more description
Definition at line 173 of file types.cc.
◆ zOfVectorProduct()
int dw::core::Polygon::zOfVectorProduct |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 |
|
) |
| |
|
inlineprivate |
Return the z-coordinate of the vector product of two vectors, whose z-coordinate is 0 (so that x and y of the vector product is 0, too).
Definition at line 115 of file types.hh.
◆ maxx
int dw::core::Polygon::maxx |
|
private |
◆ maxy
int dw::core::Polygon::maxy |
|
private |
◆ minx
int dw::core::Polygon::minx |
|
private |
◆ miny
int dw::core::Polygon::miny |
|
private |
◆ points
The documentation for this class was generated from the following files: