Envelope.compute_middle

Envelope.compute_middle(x, y)

Compute the middle of the envelope based on the appropriate method.