4646//! and Mapping Annual Conference. Orlando, Florida.
4747//! * "Transformation from Cartesian to Geodetic Coordinates Accelerated by
4848//! Halley’s Method", T. Fukushima (2006), Journal of Geodesy.
49- use crate :: c_bindings;
5049
5150/// WGS84 geodetic coordinates (Latitude, Longitude, Height)
5251///
@@ -95,7 +94,7 @@ impl LLHDegrees {
9594 /// just the representation of the angular values.
9695 pub fn to_radians ( & self ) -> LLHRadians {
9796 let mut rad = LLHRadians :: default ( ) ;
98- unsafe { c_bindings :: llhdeg2rad ( self . as_ptr ( ) , rad. as_mut_ptr ( ) ) } ;
97+ unsafe { swiftnav_sys :: llhdeg2rad ( self . as_ptr ( ) , rad. as_mut_ptr ( ) ) } ;
9998 rad
10099 }
101100
@@ -184,7 +183,7 @@ impl LLHRadians {
184183 /// just the representation of the angular values.
185184 pub fn to_degrees ( & self ) -> LLHDegrees {
186185 let mut deg = LLHDegrees :: default ( ) ;
187- unsafe { c_bindings :: llhrad2deg ( self . as_ptr ( ) , deg. as_mut_ptr ( ) ) } ;
186+ unsafe { swiftnav_sys :: llhrad2deg ( self . as_ptr ( ) , deg. as_mut_ptr ( ) ) } ;
188187 deg
189188 }
190189
@@ -193,7 +192,7 @@ impl LLHRadians {
193192 /// (X, Y and Z).
194193 pub fn to_ecef ( & self ) -> ECEF {
195194 let mut ecef = ECEF :: default ( ) ;
196- unsafe { c_bindings :: wgsllh2ecef ( self . as_ptr ( ) , ecef. as_mut_ptr ( ) ) } ;
195+ unsafe { swiftnav_sys :: wgsllh2ecef ( self . as_ptr ( ) , ecef. as_mut_ptr ( ) ) } ;
197196 ecef
198197 }
199198}
@@ -280,7 +279,7 @@ impl ECEF {
280279 /// longitude and height).
281280 pub fn to_llh ( & self ) -> LLHRadians {
282281 let mut llh = LLHRadians :: from_array ( & [ 0.0 ; 3 ] ) ;
283- unsafe { c_bindings :: wgsecef2llh ( self . as_ptr ( ) , llh. as_mut_ptr ( ) ) } ;
282+ unsafe { swiftnav_sys :: wgsecef2llh ( self . as_ptr ( ) , llh. as_mut_ptr ( ) ) } ;
284283 llh
285284 }
286285
@@ -294,7 +293,7 @@ impl ECEF {
294293 pub fn azel_of ( & self , point : & ECEF ) -> AzimuthElevation {
295294 let mut azel = AzimuthElevation :: new ( 0.0 , 0.0 ) ;
296295 unsafe {
297- c_bindings :: wgsecef2azel ( point. as_ptr ( ) , self . as_ptr ( ) , & mut azel. az , & mut azel. el )
296+ swiftnav_sys :: wgsecef2azel ( point. as_ptr ( ) , self . as_ptr ( ) , & mut azel. az , & mut azel. el )
298297 } ;
299298 azel
300299 }
0 commit comments