geometry functions needed for creating dot stims