A simulation of a Paul trap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
describe("...", function() { | |
it("should ...", function() { | |
expect(true).toBeTruthy() | |
}) | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A camera scaffold. | |
*/ | |
export default class Camera implements EIGHT.Facet { | |
// | |
// Implementing the Facet interface provides uniform values. | |
// Implementing eye, look, up enables trackball controls. | |
// | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class GUI extends dat.GUI { | |
constructor(private director: EIGHT.Director) { | |
super(); | |
this.add(this, 'next'); | |
this.add(this, 'prev'); | |
} | |
next() { | |
this.director.forward(); | |
} | |
prev() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A camera scaffold. | |
*/ | |
export default class Camera implements EIGHT.Facet { | |
// | |
// Implementing the Facet interface provides uniform values. | |
// Implementing eye, look, up enables trackball controls. | |
// | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {e1, e2, G2, multivector, vec} from './G2' | |
export default function() { | |
describe("multivector(a, x, y, b)", function() { | |
const a = Math.random(); | |
const x = Math.random(); | |
const y = Math.random(); | |
const b = Math.random(); | |
const M = multivector(a, x, y, b); | |
it("properties should correct", function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
describe("...", function() { | |
it("should ...", function() { | |
expect(true).toBeTruthy() | |
}) | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {e1, e2/*, G2*/, multivector/*, vec*/} from './G2' | |
export default function() { | |
describe("multivector(a, x, y, b)", function() { | |
const a = Math.random(); | |
const x = Math.random(); | |
const y = Math.random(); | |
const b = Math.random(); | |
const M = multivector(a, x, y, b); | |
it("properties should correct", function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
describe("...", function() { | |
it("should ...", function() { | |
expect(true).toBeTruthy() | |
}) | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ArcBall { | |
addRef(): number; | |
release(): number; | |
} | |
export default function arcBall(element: HTMLElement): ArcBall { | |
const mousedown = function(ev: MouseEvent) { | |
} | |
const mousemove = function(ev: MouseEvent) { | |
} |