We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcfd05 commit 2c953ddCopy full SHA for 2c953dd
1 file changed
test/TestUnit.m
@@ -174,6 +174,7 @@ function test_geodetic2enu(tc)
174
tc.verifyEqual([lt, ln, at],[tc.lat, tc.lon, tc.alt-1], AbsTol=tc.atol, RelTol=tc.rtol)
175
end
176
177
+
178
function test_enu2ecef(tc)
179
180
E = matmap3d.wgs84Ellipsoid();
@@ -186,8 +187,21 @@ function test_enu2ecef(tc)
186
187
188
[n1, e1, d] = matmap3d.ecef2ned(x,y,z,tc.lat,tc.lon,tc.alt, E, tc.angleUnit);
189
tc.verifyEqual([e,n,u],[e1,n1,-d])
190
191
192
193
194
+function test_enu_vector(tc)
195
+uvw = [27.9799, -1.0990, -15.7723];
196
+lat0 = 17.4114;
197
+lon0 = 78.270;
198
+[e,n,u] = matmap3d.ecef2enuv(uvw(1), uvw(2), uvw(3), lat0, lon0);
199
+[u,v,w] = matmap3d.enu2ecefv(e,n,u, lat0, lon0);
200
+tc.verifyEqual([u,v,w], uvw, AbsTol=1e-3)
201
+end
202
203
204
205
function test_lookAtSpheroid(tc)
206
207
az5 = [0., 10., 125.];
0 commit comments