geometry: allow constructing SHAPE_LINE_CHAINs from a flat vector of ints
This commit is contained in:
parent
fa04174ecf
commit
7b8fe9c1af
|
@ -97,6 +97,8 @@ public:
|
||||||
m_bbox( aShape.m_bbox )
|
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_LINE_CHAIN( const std::vector<wxPoint>& aV, bool aClosed = false )
|
||||||
: SHAPE( SH_LINE_CHAIN ), m_closed( aClosed ), m_width( 0 )
|
: 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 PointInside( const VECTOR2I& aPt, int aAccuracy = 0, bool aUseBBoxCache = false ) const;
|
||||||
|
|
||||||
|
|
||||||
|
bool SegmentInside( const SEG& aSeg ) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function PointOnEdge()
|
* Function PointOnEdge()
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue