Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
puqeko committed Jul 23, 2023
1 parent b351975 commit cec86ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is intended as a toy for helping get my head around [Geometric Algebra](htt
Some nice features:

* The value of the last expression is displayed in the output console.
* The script is re-evaluated automatically and progress is saved to your local browser cache incase the page accidentally reloads
* <kbd>Ctrl</kbd> + <kbd>R</kbd> (Run), <kbd>Ctrl</kbd> + <kbd>S</kbd> (Save)
* Can use the `print` and `graph` functions to output multiple messages to the console and show multiple graphs respectively.

Use `context_manager.pushAlgebra(...)` and `context_manager.popAlgebra()` to change the currently active Algebra 'mode'. They take the same arguments as the `Algebra` factory from `ganja.js` but there might be some support holes. The default is 2D PGA, equivilent to `Algebra(2, 0, 1)`. The current algebra object is accessiable via `context_manager.getAlgebra()` but direct access is probably not needed. This helps with the scoping and consistancy issues stated above but also helps with interoperability by ensuring each algebra produced by the factory is a singleton. This all probably comes at a slight performance cost that I am yet to care about.
Expand Down

0 comments on commit cec86ee

Please sign in to comment.