[core] Fix tolerance in EqualsWithinTolerance

Prior to commit d6c69d21635e, SkPointPriv::CanNormalize
rejected vectors shorter than SK_ScalarNearlyZero, so 2-arg
SkPointPriv::EqualsWithinTolerance used !CanNormalize as a shorthand
for approximate equality. When d6c69d21635e switched setLength to
double-precision intermediates and relaxed CanNormalize to accept any
finite non-zero vector, this shorthand became no longer valid.

Bug: b/444237061
Change-Id: Idc65e39ff711e2f58c2b5f1305ad7534c9ac4c3c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1416640
Reviewed-by: Thomas Smith <thomsmit@google.com>
Commit-Queue: AJ Tuttle <ajtuttle@google.com>
1 file changed