This example is taken from the Sitepoint book, JavaScript? (cite required).
This file contains 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
// |
This file contains 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 { cross } from './gibbs' | |
import { Vector } from './Vector' | |
/** | |
* A reference frame consiting of three orthonormal vectors. | |
* The camera also has a position property. | |
* The down direction is assumed to be -e2. | |
*/ | |
export class Camera { | |
/** |
This file contains 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
{ | |
"uuid": "74616ba8-b76d-4bed-b4ef-46d8396e03a0", | |
"description": "Complex Exponential", | |
"dependencies": { | |
"DomReady": "latest", | |
"davinci-mathbox": "latest", | |
"davinci-blade": "1.1.1" | |
}, | |
"operatorOverloading": false | |
} |
This file contains 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
{ | |
"uuid": "5fa27fe7-8c12-4360-982b-47feb33c8c50", | |
"description": "Axis Labeling", | |
"dependencies": { | |
"DomReady": "latest", | |
"davinci-mathbox": "1.0.14" | |
} | |
} |
This file contains 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
{ | |
"uuid": "4dd474cd-ae3e-4e80-9c40-a8050e9f8b7c", | |
"description": "Surface Warp", | |
"dependencies": { | |
"MathBox-bundle": "latest", | |
"domready": "latest" | |
} | |
} |
This file contains 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
{ | |
"uuid": "cbfdcae5-fab1-4562-9461-7f31cb165af1", | |
"description": "Projective View", | |
"dependencies": { | |
"MathBox-bundle": "latest", | |
"domready": "latest" | |
} | |
} |
This file contains 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
{ | |
"uuid": "3f553bfc-9db4-40cc-8fba-bc797dfd530e", | |
"description": "Complex Numbers", | |
"dependencies": { | |
"davinci-mathbox": "1.0.14", | |
"DomReady": "latest" | |
} | |
} |
This file contains 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
{ | |
"uuid": "a9917079-877a-4c11-817d-b1900f054d97", | |
"description": "Surface Intersection", | |
"dependencies": { | |
"domready": "latest", | |
"MathBox": "latest" | |
} | |
} |
OlderNewer