Example #1
0
void Region2DLine::SetLine( int x1, int y1, int x2, int y2 )
{
  m_nX1 = x1;
  m_nY1 = y1;
  m_nX2 = x2;
  m_nY2 = y2;

  UpdateWorldCoords();
  Update();
}
Example #2
0
void Region2DPolyline::AddPoint( int x, int y )
{
  ScreenPoint pt;
  pt.pos[0] = x;
  pt.pos[1] = y;
  m_screenPts.push_back( pt );

  UpdateWorldCoords();
  Update();
}