public Shape hexagon(float x,float y,float height){
  float width=height / 2;
  m_path.reset();
  m_path.moveTo(x,y + 0.5f * height);
  m_path.lineTo(x + 0.5f * width,y);
  m_path.lineTo(x + 1.5f * width,y);
  m_path.lineTo(x + 2.0f * width,y + 0.5f * height);
  m_path.lineTo(x + 1.5f * width,y + height);
  m_path.lineTo(x + 0.5f * width,y + height);
  m_path.closePath();
  return m_path;
}

public Shape hexagon ( float x , float y , float height ) { float width = height / 2 ; m_path . reset ( ) ; m_path . moveTo ( x , y + 0.5f * height ) ; m_path . lineTo ( x + 0.5f * width , y ) ; m_path . lineTo ( x + 1.5f * width , y ) ; m_path . lineTo ( x + 2.0f * width , y + 0.5f * height ) ; m_path . lineTo ( x + 1.5f * width , y + height ) ; m_path . lineTo ( x + 0.5f * width , y + height ) ; m_path . closePath ( ) ; return m_path ; }
returns a hexagon shape of the given dimenisions .
