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