Skip to content

Commit

Permalink
Add simple self contained example (#8)
Browse files Browse the repository at this point in the history
Source located under [`static/simple.html`](/static/simple.html). You may find this version easier if you just want to see how the transformation works and apply it to your own projects. It is completely self contained and has no external dependencies making it convenient and easy to use.
  • Loading branch information
HarryGifford authored Jul 10, 2023
1 parent 0f23e85 commit 2237932
Show file tree
Hide file tree
Showing 2 changed files with 402 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[**Live WebGL demo**](https://harrygifford.github.io/special-relativity/)

[**Simple single HTML version**](https://harrygifford.github.io/special-relativity/simple.html). Source located under [`static/simple.html`](/static/simple.html). You may find this version easier if you just want to see how the transformation works and apply it to your own projects. It is completely self contained and has no external dependencies.

This project shows how the geometry of the world looks under
special relativistic transformations. You can see a live demo
[here](https://harrygifford.github.io/special-relativity/). You can see effects such as Terrell rotation, Doppler shifting and the headlight effect. Note that the
Expand All @@ -13,7 +15,7 @@ page uses WebGL. If you cannot use WebGL, there is a video
Accelerating along a street at at relativistic speeds. You can see the
geometric effects of [abberation](https://en.wikipedia.org/wiki/Relativistic_aberration) and [Terrell rotation](https://en.wikipedia.org/wiki/Terrell_rotation).

See [Explanation](/explanation.md) for details on the math.
See [Explanation](/explanation.md) for details on the math as well as for information on how to add this to your own code.

## Usage

Expand Down
Loading

0 comments on commit 2237932

Please sign in to comment.