public void ResizeSingleHand() { if (handData.FingerCount == 2) { this.HandleResize(handData.FingerPoints[0].Location, handData.FingerPoints[1].Location); this.isResizing = true; } else { this.isResizing = false; } }
private void HandleTwoHandedActions(HandTracker handTrack) { var otherHand = this.handTracks.Where(h => h != handTrack && h.HoveredImage == handTrack.HoveredImage).FirstOrDefault(); if (otherHand == null) { handTrack.ResizeSingleHand(); } else { handTrack.ResizeTwoHands(otherHand); } }