public static float2 mul(byte2 a, float b) { return(new float2( a.x * b, a.y * b )); }
public static float2 mul(float a, byte2 b) { return(new float2( a * b.x, a * b.y )); }
public static float2 lerp(byte2 x, byte2 y, float s) { return(x + mul(s, (y - x))); }
public bool Equals(byte2 v) { return(x == v.x && y == v.y); }
public byte2(byte2 v) { this.x = v.x; this.y = v.y; }
public static float2 b2f(byte2 b) { return(mathx.mul(b, 1f) / byte.MaxValue); }