ENH: added parameter to use periodic x-coordinates

@jaimefrio I liked to keep the two branches because the additional overhead cost of this enhancement will be only a `is None` check... if I had to perform the other checks for all cases there would be a higher overhead...

Second question about `period <= 0`... being checked