curve: adds pointFromX impl.