let GeneralPolygon2D#getSegments() returns more accurate type