isConvex(pts: Vec2[]): boolean