public float GetValue(Vector3 direction) { return((0.5f * P0.GetValue(direction)) + (0.5f * P1.GetValue(direction))); }