Skip to content

Commit

Permalink
add test for ecef2ned
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jun 26, 2024
1 parent d52415d commit 3a2a485
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/TestUnit.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ function test_enu2ecef(tc)

[e,n,u] = matmap3d.ecef2enu(x,y,z,lat,lon,alt, E, angleUnit); % round-trip
tc.verifyEqual([e,n,u],[tc.TestData.er, tc.TestData.nr, tc.TestData.ur], 'AbsTol', atol, 'RelTol', rtol)

[n1, e1, d] = matmap3d.ecef2ned(x,y,z,lat,lon,alt, E, angleUnit);
tc.verifyEqual([e,n,u],[e1,n1,-d])
end

function test_lookAtSpheroid(tc)
Expand Down

0 comments on commit 3a2a485

Please sign in to comment.