Implement Connection.contains, moved point calculation to Connection.