예제 #1
0
 // Note: We should apply a velocity factor to thresholds to determine if isSignificant
 internal bool IsSignificant(GestureRecognizer.Manipulation.Thresholds thresholds)
 => Math.Abs(Translation.X) >= thresholds.TranslateX ||
 Math.Abs(Translation.Y) >= thresholds.TranslateY ||
 Rotation >= thresholds.Rotate ||                 // We used the ToDegreeNormalized, no need to check for negative angles
 Math.Abs(Expansion) >= thresholds.Expansion;
예제 #2
0
 // 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;
예제 #3
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;