示例#1
0
        public static Vec2 Max(Vec2 a, Vec2 b)
        {
            Vec2 c = new Vec2
            {
                X = MathB2.Max(a.X, b.X),
                Y = MathB2.Max(a.Y, b.Y)
            };

            return(c);
        }
示例#2
0
 public static Vec2 Clamp(Vec2 a, Vec2 low, Vec2 high)
 {
     return(MathB2.Max(low, MathB2.Min(a, high)));
 }
示例#3
0
 public static int Clamp(int a, int low, int high)
 {
     return(MathB2.Max(low, MathB2.Min(a, high)));
 }
示例#4
0
 public static float Clamp(float a, float low, float high)
 {
     return(MathB2.Max(low, MathB2.Min(a, high)));
 }