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 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
const G = GeoCAS.algebra([+1, -1], new GeoCAS.ComplexFieldAdapter(), ['e_1','e_2']) | |
export const zero = G.zero; | |
export const one = G.one; | |
export const e1 = G.unit(0); | |
export const e2 = G.unit(1); |
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
function wedge(a: number[], b: number[]): number[] { | |
const result: number[] = []; | |
const aLen = a.length; | |
const bLen = b.length; | |
for (let i = 0; i < aLen; i++) { | |
result.push(a[i]); | |
} | |
for (let i = 0; i < bLen; i++) { | |
result.push(b[i]); | |
} |
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 { PerspectiveCamera, VectorE3, VectorE2, Geometric3 } from 'davinci-eight' | |
export default class Overlay { | |
public ctx: CanvasRenderingContext2D; | |
constructor(_canvas: string, private camera: PerspectiveCamera) { | |
const canvasElement = <HTMLCanvasElement> document.getElementById('canvas2D'); | |
this.ctx = canvasElement.getContext('2d') as CanvasRenderingContext2D; | |
this.ctx.strokeStyle = "#FFFFFF"; | |
this.ctx.fillStyle = '#ffffff'; | |
this.ctx.font = '24px Helvetica'; |
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 Cartesian3 { | |
x: number | |
y: number | |
z: number | |
} | |
export interface Camera { | |
eye: Cartesian3 | |
look: Cartesian3 |