A starting point for learning Geometry using the WebGL API.
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
/** | |
* Heading | |
*/ | |
const INDEX_H = 0; | |
/** | |
* Left | |
*/ | |
const INDEX_L = 1; | |
/** | |
* Up. |
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 { Drawable, Diagram } from './diagram.js' | |
import { createDirectedLineSegment } from './DirectedLineSegment.js' | |
import { e1, e2 } from './math.js' | |
import { G2 } from 'davinci-units' | |
export interface DirectedAreaElement extends Drawable { | |
/** | |
* Vector along the first side of the DirectedAreaElement. | |
*/ | |
a: G2 |
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() | |
}) | |
}) | |
} |