QGeoPathPrivate::lineContains(): simplify vector calculations
Actually compute the difference vectors and then work with their
units, rather than repeatedly computing each component of each
difference. One of the difference vectors was already computed in any
case (to get its squared length); and the rewrite makes it a lot
easier to see what's being computed.
Task-number: QTBUG-142317
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ifb47442f36bfaf345e90d8a25bcb71af122e76ec
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>