add isConvex()

added isConvex().

currently in Tools, we should discuss whether we should add it to Polygon as well.