General law of refraction | Synapse