geometry: allow constructing SHAPE_LINE_CHAINs from a flat vector of ints

This commit is contained in:
Tomasz Wlostowski 2020-02-19 18:11:07 +01:00
parent fa04174ecf
commit 7b8fe9c1af
1 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,8 @@ public:
m_bbox( aShape.m_bbox )
{}
SHAPE_LINE_CHAIN( const std::vector<int>& aV);
SHAPE_LINE_CHAIN( const std::vector<wxPoint>& aV, bool aClosed = false )
: SHAPE( SH_LINE_CHAIN ), m_closed( aClosed ), m_width( 0 )
{
@ -583,6 +585,9 @@ public:
*/
bool PointInside( const VECTOR2I& aPt, int aAccuracy = 0, bool aUseBBoxCache = false ) const;
bool SegmentInside( const SEG& aSeg ) const;
/**
* Function PointOnEdge()
*