-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed rotation before translation bug and fixed typos in docs
- Loading branch information
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
-45 Bytes
(100%)
Technical Documentation/Visualizing_Celestial_Bodies_in_3D.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
% See also background, ground_track. | ||
% | ||
% Copyright © 2021 Tamas Kis | ||
% Last Update: 2022-07-06 | ||
% Last Update: 2023-05-17 | ||
% Website: https://tamaskis.github.io | ||
% Contact: [email protected] | ||
% | ||
|
@@ -195,8 +195,8 @@ | |
a = conversion_factor*R; | ||
b = a*(1-f); | ||
|
||
% coordinates of ellipsoid (uses 400 panels) | ||
[x,y,z] = ellipsoid(position(1),position(2),position(3),a,a,b,400); | ||
% coordinates of ellipsoid centered at (0,0,0) using 400 panels | ||
[x,y,z] = ellipsoid(0,0,0,a,a,b,400); | ||
|
||
% ------------------------------------------------------------ | ||
% Defining surfaces/coordinates needed to draw celestial body. | ||
|
@@ -272,6 +272,14 @@ | |
z_coast = new_coordinates(3,:); | ||
end | ||
|
||
% --------------------- | ||
% Performs translation. | ||
% --------------------- | ||
|
||
planet_surface.XData = planet_surface.XData+position(1); | ||
planet_surface.YData = planet_surface.YData+position(2); | ||
planet_surface.ZData = planet_surface.ZData+position(3); | ||
|
||
% -------------------------------------------------------------- | ||
% Drawing additional lines (i.e. coastlines or rings of Saturn). | ||
% -------------------------------------------------------------- | ||
|