Skip to content

Commit

Permalink
feat(Util): remove wrapTo360 dependency
Browse files Browse the repository at this point in the history
This fixes another case of missing dependency for the stand alone
binary.

The function `wrapTo360` is not present in runtime v96, so
the standalone binary is broken when using this function.

Moreover, the use here is quite unnecessary, since
requires back-forth conversion for the 360 degree case.

The conversion is now direct, given the atan2d is bounded by
-180-180 degrees anyway.
  • Loading branch information
ocehugo committed Apr 20, 2021
1 parent 5b73e90 commit b531528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Util/azimuth_direction.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
% result = azimuth_direction(u,v);
% assert(all(result==azimuths));
%
dir=wrapTo360(360+90-atan2d(v,u));
dir(dir==360)=0;
dir=mod(360+90-atan2d(v,u),360);
end

0 comments on commit b531528

Please sign in to comment.