Ik probeer MatLab functies om te zetten naar VB.net, maar nou loop ik vast op onderstaande code:
De onderste 6 regels daar loop ik op vast. Weet iemand hoe ik dat moet vertalen naar VB.net?
Matlab:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| % Useage: [dX,dY,dZ]=lg2ct(dx,dy,dz,lat,lon) % Input: dx - x coordinate in local system (N) % dy - y coordinate in local system (E) % dz - z coordinate in local system (ht) % lat - lat of local system origin (rad) % lon - lon of local system origin (rad) % Output: dX - X coordinate difference in CT % dY - Y coordinate difference in CT % dZ - Z coordinate difference in CT R=zeros(3,3); R(1,1)=-sin(lat).*cos(lon); R(2,1)=-sin(lat).*sin(lon); R(3,1)=cos(lat); R(1,2)=-sin(lon); R(2,2)=cos(lon); R(3,2)=0; R(1,3)=cos(lat).*cos(lon); R(2,3)=cos(lat).*sin(lon); R(3,3)=sin(lat); dX=R(1,:)*[dx';dy';dz']; dY=R(2,:)*[dx';dy';dz']; dZ=R(3,:)*[dx';dy';dz']; dX=dX'; dY=dY'; dZ=dZ'; |
De onderste 6 regels daar loop ik op vast. Weet iemand hoe ik dat moet vertalen naar VB.net?
Home Assistant | Unifi | LG 51MR.U44 | Volvo EX30 SMER+ Vapour Grey, trekhaak | SmartEVSE V3 | Cronos Crypto.com