コード例 #1
0
 public Paint(int r, int g, int b, int a)
 {
     R = (int)PMath.Clamp(r, 0, 255);
     G = (int)PMath.Clamp(g, 0, 255);
     B = (int)PMath.Clamp(b, 0, 255);
     A = (int)PMath.Clamp(a, 0, 255);
 }
コード例 #2
0
 public static float BezierBlend(this float a) => PMath.BezierBlend(a);
コード例 #3
0
 public static float Lerp(this float t, float a, float b) => PMath.Lerp(a, b, t);
コード例 #4
0
 public static float Sigmoid(this float a) => PMath.Sigmoid(a);
コード例 #5
0
 public static void Shuffle <T>(this IList <T> list) => PMath.Shuffle(list);
コード例 #6
0
 public static float Floor(this float a) => PMath.Floor(a);
コード例 #7
0
 public static float Round(this float a) => PMath.Round(a);
コード例 #8
0
 public static float Map(this float v, float a1, float b1, float a2, float b2) => PMath.Map(v, a1, b1, a2, b2);
コード例 #9
0
 public static float DegreesToRadians(this float d) => PMath.Radians(d);
コード例 #10
0
 public static float Clamp(this float a, float min, float max) => PMath.Clamp(a, min, max);
コード例 #11
0
 public static float Sqrt(this float a) => PMath.Sqrt(a);
コード例 #12
0
 public static float Pow(this float a, float b) => PMath.Pow(a, b);
コード例 #13
0
 public static float Tan(this float a) => PMath.Tan(a);
コード例 #14
0
 public static float Cos(this float a) => PMath.Cos(a);
コード例 #15
0
 public static float Sin(this float a) => PMath.Sin(a);
コード例 #16
0
 public static float ParametricBlend(this float a) => PMath.ParametricBlend(a);
コード例 #17
0
 public static float RadiansToDegrees(this float r) => PMath.Degrees(r);
コード例 #18
0
 public static float JumpingParametricBlend(this float a) => PMath.JumpingParametricBlend(a);