27 references to LengthSquared
PresentationCore (24)
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
304
if (DoubleUtil.IsZero(ptT.
LengthSquared
))
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (11)
108
double distanceSquared = spine.
LengthSquared
;
249
if (nearest.
LengthSquared
<= (bigRadius * bigRadius))
263
if ((nearest.
LengthSquared
<= (smallRadius * smallRadius)) || HitTestQuadSegment(quad, hitBeginPoint, hitEndPoint))
347
if (nearest.
LengthSquared
<= bigRadiusSquared)
357
if ((nearest.
LengthSquared
<= smallRadiusSquared) ||
408
if (nearest.
LengthSquared
<= (endRadius * endRadius))
418
if (nearest.
LengthSquared
<= (beginRadius * beginRadius))
514
if (nearest.
LengthSquared
< endRadiusSquared)
536
if (nearest.
LengthSquared
< beginRadiusSquared)
658
if (P1Xp.
LengthSquared
< (beginRadius * beginRadius))
673
if (DoubleUtil.IsZero(P1P2p.
LengthSquared
) || DoubleUtil.IsZero(endRadius - beginRadius + P1P2p.Length))
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (1)
299
if (v.
LengthSquared
< CollinearTolerance)
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (8)
349
double radiusSquared = radius.
LengthSquared
;
352
double distanceSquared = GetNearest(segBegin, segEnd).
LengthSquared
;
373
result = DoubleUtil.LessThan(segBegin.
LengthSquared
, segEnd.
LengthSquared
) ? HitResult.InFront :
385
distanceSquared = normal.
LengthSquared
;
512
return Math.Sqrt(nearestOnFirst.
LengthSquared
/ shortest.
LengthSquared
);
526
double lengthSquared = segment.
LengthSquared
;
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (2)
853
weight += Math.Sqrt(spine.
LengthSquared
) / 2.0f;
863
weight += Math.Sqrt(spine.
LengthSquared
) / 2.0f;
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
378
return Math.Sqrt(spine.
LengthSquared
);
PresentationFramework (3)
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
100
double distanceSquared = last2next.
LengthSquared
;
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
155
double distanceSquared = vector.
LengthSquared
;
217
double distanceSquared = vector.
LengthSquared
;