fft() assumes that the input is a subset of a periodic signal. For fft() purposes you can generate a positive integer number of cycles of samples and fft() that. Nothing special needs to be done, periodic is already assumed.
You should, however, take care that the last signal is the one before return to origin, not the return to origin itself. For example if you were sampling a function at each degree you would not sample at 0:360 (361 samples) you would sample at 0:359.