Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cesium-frame
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jlc
cesium-frame
Commits
6d207b02
Commit
6d207b02
authored
Aug 01, 2024
by
lyc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月球轨道半径修改
parent
d07cf1ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
moonTrack-function.js
src/examples/spaceMissions/moonTrack/moonTrack-function.js
+2
-2
No files found.
src/examples/spaceMissions/moonTrack/moonTrack-function.js
View file @
6d207b02
...
@@ -10,7 +10,7 @@ export function addMoonTrack(viewer) {
...
@@ -10,7 +10,7 @@ export function addMoonTrack(viewer) {
viewer
.
timeline
.
zoomTo
(
start
,
stop
);
viewer
.
timeline
.
zoomTo
(
start
,
stop
);
const
inclination
=
Cesium
.
Math
.
toRadians
(
28.5
);
// 轨道倾角(以弧度表示)
const
inclination
=
Cesium
.
Math
.
toRadians
(
28.5
);
// 轨道倾角(以弧度表示)
const
semiMajorAxis
=
38440000
;
// 半长轴(米),大约为月球到地球的平均距离
const
semiMajorAxis
=
38440000
0
;
// 半长轴(米),大约为月球到地球的平均距离
// const period = 27.321582 * 24 * 60 * 60; // 月球的公转周期(秒)
// const period = 27.321582 * 24 * 60 * 60; // 月球的公转周期(秒)
const
period
=
360
;
const
period
=
360
;
// 定义轨道上的点数
// 定义轨道上的点数
...
@@ -61,7 +61,7 @@ export function addMoonTrack(viewer) {
...
@@ -61,7 +61,7 @@ export function addMoonTrack(viewer) {
// 设置月球的形状
// 设置月球的形状
model
:
{
model
:
{
uri
:
'https://raw.githubusercontent.com/jinlinchao123/Cesium-assets/main/3Dmodel/moon.gltf'
,
uri
:
'https://raw.githubusercontent.com/jinlinchao123/Cesium-assets/main/3Dmodel/moon.gltf'
,
minimumPixelSize
:
10
0
,
minimumPixelSize
:
10
,
scale
:
200.0
,
scale
:
200.0
,
},
},
// 显示月球的运动轨迹
// 显示月球的运动轨迹
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment