Beispiel #1
0
		internal bool IsSignificant(GestureRecognizer.Manipulation.Thresholds thresholds)
			=> Math.Abs(Translation.X) >= thresholds.TranslateX
			|| Math.Abs(Translation.Y) >= thresholds.TranslateY
			|| Math.Abs(Rotation) >= thresholds.Rotate
			|| Math.Abs(Expansion) >= thresholds.Expansion;
 // Note: We should apply a velocity factor to thresholds to determine if isSignificant
 internal bool IsAnyAbove(GestureRecognizer.Manipulation.Thresholds thresholds)
 => Math.Abs(Linear.X) > thresholds.TranslateX ||
 Math.Abs(Linear.Y) > thresholds.TranslateY ||
 Math.Abs(Angular) > thresholds.Rotate ||
 Math.Abs(Expansion) > thresholds.Expansion;