Beispiel #1
0
 public static double Smooth(double _percent)
 {
     return((Meth.Cos(Meth.Limit(0, _percent, 1) * Meth.Tau / 2) * -1 + 1) / 2);
 }
Beispiel #2
0
 public static Vector FromAngle(double _angle, double _length = 1) => new Vector(Meth.Cos(_angle), Meth.Sin(_angle)) * _length;