It was written that way because there were "if-else" statements in `addPoint`, and it was required to handle the first point as a special case for it to work correctly.

Would you be willing to add `setFromPoints` to the unit test?