Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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;
 }