RV function like cos not sin