Using Polyline::getPoint() instead of Polyline::operator()[] to access points.
Removed operator()[] from class Polyline since it is not self-explanatory.