-
Notifications
You must be signed in to change notification settings - Fork 11
/
constant_gravity_4d.html
72 lines (57 loc) · 2.45 KB
/
constant_gravity_4d.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="code/math.js"></script>
<script src="code/drawing.js"></script>
<script src="code/physics.js"></script>
<script src="code/utils.js"></script>
<script src="code/canvas_functions.js"></script>
<script src="code/constant_gravity_4d.js"></script>
<link rel="stylesheet" href="styles.css">
<noscript>
<p>For full functionality of this site it is necessary to enable JavaScript.
Here are the <a href="http://www.enable-javascript.com/" target="_blank">
instructions how to enable JavaScript in your web browser</a>.
</p></noscript>
</head>
<body class="sansserif">
<p align="center">
<canvas class="canvas" id="canvas" width="1400" height="480">(Canvas drawing not supported by your browser.)</canvas>
<div class="mainSlider">
Change the frame acceleration: <input type="range" min="0" max="100" value="0" class="slider" id="frameAccelerationSlider">
</div>
<div class="mainSlider">
Move the time window: <input type="range" min="0" max="100" value="50" class="slider" id="timeTranslationSlider">
</div>
<div class="mainSlider">
Change the view angle: <input type="range" min="0" max="100" value="40" class="slider" id="viewAngleSlider">
</div>
</p>
<p class="text">
<a href="index.html">← Simpler version</a>
</p>
<h4>Description:</h4>
<p class="text">
In this system there are three space dimensions and one time dimension, as in our universe. The gravitational field is constant within the area of interest.
</p>
<p class="text">
Use the first slider to change the acceleration of the reference frames.
</p>
<p class="text">
Use the second slider to move the time window.
</p>
<p class="text">
Use the third slider to rotate the scene.
</p>
<p class="text">
The plot on the right shows the full 4D spacetime. (The higher dimensions are present in the lower-dimensional plots but have zero length, which is why there's a "50m" label at the origin.)
</p>
<p class="text">
Code, more details, feedback: <a href="https://github.com/timhutton/GravityIsNotAForce">https://github.com/timhutton/GravityIsNotAForce</a>
</p>
<p class="text">
More on these concepts: <a href="https://youtu.be/XRr1kaXKBsU">https://youtu.be/XRr1kaXKBsU</a>
</p>
</body>
</html>