Inlined receptor::within and receptor::coordinate_to_index into ligand::evaluate