Skip to content

Instantly share code, notes, and snippets.

@mathdoodle
mathdoodle / Example.spec.ts
Last active July 7, 2020 18:35
Geometric Algebra Notes
export default function() {
describe("...", function() {
it("should ...", function() {
expect(true).toBeTruthy()
})
})
}
@mathdoodle
mathdoodle / Camera.ts
Last active September 8, 2016 03:53
Demo Experiment
/**
* A camera scaffold.
*/
export default class Camera implements EIGHT.Facet {
//
// Implementing the Facet interface provides uniform values.
// Implementing eye, look, up enables trackball controls.
//
/**
@mathdoodle
mathdoodle / GUI.ts
Last active September 7, 2016 15:13
Slideshow
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() {
@mathdoodle
mathdoodle / Camera.ts
Last active September 11, 2016 16:02
WireCube Scaffold
/**
* A camera scaffold.
*/
export default class Camera implements EIGHT.Facet {
//
// Implementing the Facet interface provides uniform values.
// Implementing eye, look, up enables trackball controls.
//
/**
@mathdoodle
mathdoodle / G2.spec.ts
Last active January 6, 2017 13:54
Two.js
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() {
@mathdoodle
mathdoodle / Example.spec.ts
Last active July 7, 2020 20:46
Book Outline
export default function() {
describe("...", function() {
it("should ...", function() {
expect(true).toBeTruthy()
})
})
}
@mathdoodle
mathdoodle / G2.spec.ts
Last active July 7, 2020 20:56
Book Ch1: Euclidean Plane Geometry Intro
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() {
@mathdoodle
mathdoodle / Example.spec.ts
Last active August 30, 2016 12:32
3D on HTML Canvas
export default function() {
describe("...", function() {
it("should ...", function() {
expect(true).toBeTruthy()
})
})
}
@mathdoodle
mathdoodle / ArcBall.ts
Last active August 31, 2016 23:07
Geometry Primer
export interface ArcBall {
addRef(): number;
release(): number;
}
export default function arcBall(element: HTMLElement): ArcBall {
const mousedown = function(ev: MouseEvent) {
}
const mousemove = function(ev: MouseEvent) {
}
@mathdoodle
mathdoodle / README.md
Last active July 7, 2020 20:18
Paul trap

Paul trap

Overview

A simulation of a Paul trap.