KiCad PCB EDA Suite
|
A dynamic state checking if a point lies within polygon with a dynamically built outline ( with each piece of the outline added by AddPolyline () More...
#include <shape_line_chain.h>
Public Member Functions | |
POINT_INSIDE_TRACKER (const VECTOR2I &aPoint) | |
void | AddPolyline (const SHAPE_LINE_CHAIN &aPolyline) |
bool | IsInside () |
Private Member Functions | |
bool | processVertex (const VECTOR2I &ip, const VECTOR2I &ipNext) |
Private Attributes | |
VECTOR2I | m_point |
VECTOR2I | m_lastPoint |
VECTOR2I | m_firstPoint |
bool | m_finished |
int | m_state |
int | m_count |
A dynamic state checking if a point lies within polygon with a dynamically built outline ( with each piece of the outline added by AddPolyline ()
Definition at line 131 of file shape_line_chain.h.
SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::POINT_INSIDE_TRACKER | ( | const VECTOR2I & | aPoint | ) |
Definition at line 2941 of file shape_line_chain.cpp.
void SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::AddPolyline | ( | const SHAPE_LINE_CHAIN & | aPolyline | ) |
Definition at line 3012 of file shape_line_chain.cpp.
References SHAPE_LINE_CHAIN::CPoint(), and SHAPE_LINE_CHAIN::PointCount().
Referenced by PNS::SHOVE::checkShoveDirection().
bool SHAPE_LINE_CHAIN::POINT_INSIDE_TRACKER::IsInside | ( | ) |
Definition at line 3035 of file shape_line_chain.cpp.
Referenced by PNS::SHOVE::checkShoveDirection().
|
private |
Definition at line 2950 of file shape_line_chain.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 148 of file shape_line_chain.h.
|
private |
Definition at line 146 of file shape_line_chain.h.
|
private |
Definition at line 145 of file shape_line_chain.h.
|
private |
Definition at line 144 of file shape_line_chain.h.
|
private |
Definition at line 143 of file shape_line_chain.h.
|
private |
Definition at line 147 of file shape_line_chain.h.