-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlanetSphericalRotating.m
More file actions
36 lines (29 loc) · 891 Bytes
/
PlanetSphericalRotating.m
File metadata and controls
36 lines (29 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
classdef PlanetSphericalRotating < PlanetSpherical & PlanetRotating
% PlanetSphericalRotating
methods
% Constructor
function self = PlanetSphericalRotating(data)
% Call superclass constructors
self@PlanetSpherical(data);
self@PlanetRotating(data);
end
function [lat, lon, alt, rad, Lie] = xyz2lla(self, x, y, z, t)
% ECI -> ECEF
[xe, ye, ze, Lie] = self.xyz2ecef(x, y, z, t);
% ECEF -> LLA
[lat, lon, alt, rad] = xyz2lla@PlanetSpherical(self, xe, ye, ze, t);
end
function [lat, lon, alt] = X2lla(self, X, t)
% ECI -> ECEF
Xe = self.X2ecef(X, t);
% ECEF -> LLA
[lat, lon, alt] = X2lla@PlanetSpherical(self, Xe, t);
end
function [x, y, z, Lei] = lla2xyz(self, lat, lon, alt)
% LLA -> ECEF
[xe, ye, ze] = lla2xyz@PlanetSpherical(self, lat, lon, alt);
% ECEF -> ECI
[x, y, z, Lei] = self.ecef2xyz(xe, ye, ze);
end
end
end