Esempio n. 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;
Esempio n. 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;
Esempio n. 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;