uses atan2 for placement instead of arcsin and arccos