Skip to content

Commit 3a2a485

Browse files
committed
add test for ecef2ned
1 parent d52415d commit 3a2a485

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/TestUnit.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ function test_enu2ecef(tc)
237237

238238
[e,n,u] = matmap3d.ecef2enu(x,y,z,lat,lon,alt, E, angleUnit); % round-trip
239239
tc.verifyEqual([e,n,u],[tc.TestData.er, tc.TestData.nr, tc.TestData.ur], 'AbsTol', atol, 'RelTol', rtol)
240+
241+
[n1, e1, d] = matmap3d.ecef2ned(x,y,z,lat,lon,alt, E, angleUnit);
242+
tc.verifyEqual([e,n,u],[e1,n1,-d])
240243
end
241244

242245
function test_lookAtSpheroid(tc)

0 commit comments

Comments
 (0)