12 references to new
Microsoft.Maui (12)
Animations\Easing.cs (12)
26
public static readonly Easing Linear =
new
(x => x);
31
public static readonly Easing SinOut =
new
(x => Math.Sin(x * Math.PI * 0.5f));
36
public static readonly Easing SinIn =
new
(x => 1.0f - Math.Cos(x * Math.PI * 0.5f));
41
public static readonly Easing SinInOut =
new
(x => -Math.Cos(Math.PI * x) / 2.0f + 0.5f);
46
public static readonly Easing CubicIn =
new
(x => x * x * x);
51
public static readonly Easing CubicOut =
new
(x => Math.Pow(x - 1.0f, 3.0f) + 1.0f);
56
public static readonly Easing CubicInOut =
new
(x => x < 0.5f ? Math.Pow(x * 2.0f, 3.0f) / 2.0f : (Math.Pow((x - 1) * 2.0f, 3.0f) + 2.0f) / 2.0f);
71
public static readonly Easing SpringIn =
new
(x => x * x * ((1.70158f + 1) * x - 1.70158f));
76
public static readonly Easing SpringOut =
new
(x => (x - 1) * (x - 1) * ((1.70158f + 1) * (x - 1) + 1.70158f) + 1);
82
BounceOut = new
Easing
(p =>
105
BounceIn = new
Easing
(p => 1.0f - BounceOut.Ease(1 - p));
135
return new
Easing
(func);