|
11 | 11 | % See also background, ground_track. |
12 | 12 | % |
13 | 13 | % Copyright © 2021 Tamas Kis |
14 | | -% Last Update: 2022-07-06 |
| 14 | +% Last Update: 2023-05-17 |
15 | 15 | % Website: https://tamaskis.github.io |
16 | 16 | % Contact: tamas.a.kis@outlook.com |
17 | 17 | % |
|
195 | 195 | a = conversion_factor*R; |
196 | 196 | b = a*(1-f); |
197 | 197 |
|
198 | | - % coordinates of ellipsoid (uses 400 panels) |
199 | | - [x,y,z] = ellipsoid(position(1),position(2),position(3),a,a,b,400); |
| 198 | + % coordinates of ellipsoid centered at (0,0,0) using 400 panels |
| 199 | + [x,y,z] = ellipsoid(0,0,0,a,a,b,400); |
200 | 200 |
|
201 | 201 | % ------------------------------------------------------------ |
202 | 202 | % Defining surfaces/coordinates needed to draw celestial body. |
|
272 | 272 | z_coast = new_coordinates(3,:); |
273 | 273 | end |
274 | 274 |
|
| 275 | + % --------------------- |
| 276 | + % Performs translation. |
| 277 | + % --------------------- |
| 278 | + |
| 279 | + planet_surface.XData = planet_surface.XData+position(1); |
| 280 | + planet_surface.YData = planet_surface.YData+position(2); |
| 281 | + planet_surface.ZData = planet_surface.ZData+position(3); |
| 282 | + |
275 | 283 | % -------------------------------------------------------------- |
276 | 284 | % Drawing additional lines (i.e. coastlines or rings of Saturn). |
277 | 285 | % -------------------------------------------------------------- |
|
0 commit comments