private bool IsCloseEnough(ItemPositionTrigger trigger) { double dist = Math.Abs(MathEx.CalcDistance(trigger.ItemA.Position.Image, trigger.ItemB.Position.Image)); //Debug.WriteLine("Dist: -> " + dist); bool itIs = trigger.DistanceInPx >= dist; return(itIs); }
private bool IsCloseEnough(ItemPositionTrigger trigger) { double dist = Math.Abs(MathEx.CalcDistance(trigger.ItemA.Position.Image, trigger.ItemB.Position.Image)); //Debug.WriteLine("Dist: -> " + dist); bool itIs = trigger.DistanceInPx >= dist; return itIs; }