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>
commit17781793491d853ca83c1f6e2207b5afacb4b83c
parentabca592ba360296c0f81101470b5e05375e4f946
authorEdward Welbourne <edward.welbourne@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 15 Jan 2026 11:18:12 +0100