Switch engine to light cone basis
This commit is contained in:
parent
e6cf08a9b3
commit
bde42ebac0
5 changed files with 19 additions and 7 deletions
|
|
@ -4,6 +4,8 @@ using Blink
|
|||
using Colors
|
||||
using Printf
|
||||
|
||||
using Main.Engine
|
||||
|
||||
export ConstructionViewer, display!, opentools!, closetools!
|
||||
|
||||
# === Blink utilities ===
|
||||
|
|
@ -133,7 +135,7 @@ mprod(v, w) =
|
|||
function display!(viewer::ConstructionViewer, elements::Matrix)
|
||||
# load elements
|
||||
elements_full = []
|
||||
for elt in eachcol(elements)
|
||||
for elt in eachcol(Engine.unmix * elements)
|
||||
if mprod(elt, elt) < 0.5
|
||||
elt_full = [0; elt; fill(0, 26)]
|
||||
else
|
||||
|
|
@ -206,7 +208,7 @@ end
|
|||
# ~~~ sandbox setup ~~~
|
||||
|
||||
# in the default view, e4 + e5 is the point at infinity
|
||||
elements = sqrt(0.5) * BigFloat[
|
||||
elements = Engine.nullmix * sqrt(0.5) * BigFloat[
|
||||
1 1 -1 -1 0;
|
||||
1 -1 1 -1 0;
|
||||
1 -1 -1 1 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue