Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copyright (C) 2015 - Home - Basileus
- // Date of creation: 23.03.2015 10:17:23
- //Standart headers
- #include <math.h>
- int vr_func(int Width, int Length, double *inputAlpha, double *inputBeta, double *inputVel, double *outVel)
- {
- int i = 0,j = 0;
- for(j=0; j<Length; j++)
- {
- for(i=0;i<Width;i++)
- {
- outVel[j*Width+i]=sin(inputAlpha[i]) * cos(inputBeta[j]) * inputVel[i] + cos(inputAlpha[i]) * cos(inputBeta[j]) * inputVel[Width+i] - sin(inputBeta[j]) * inputVel[2*Width+i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement