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); }
public static Vec2 Clamp(Vec2 a, Vec2 low, Vec2 high) { return(MathB2.Max(low, MathB2.Min(a, high))); }
public static int Clamp(int a, int low, int high) { return(MathB2.Max(low, MathB2.Min(a, high))); }
public static float Clamp(float a, float low, float high) { return(MathB2.Max(low, MathB2.Min(a, high))); }