Renamed lineFromPoints to fromPoints