public Vector2 Mix(Vector2 a, Vector2 b, float wa, float wb) { float weight = (0.5f - wa) / (wb - wa); return a + weight * (b - a); }