DefinitelyTyped/math3d/math3d-tests.ts
2017-02-23 07:15:16 -08:00

8 lines
247 B
TypeScript

import * as math3d from 'math3d';
const v = new math3d.Vector3(1, 2, 3);
v.add(new math3d.Vector3(0, 0, 1));
new math3d.Matrix4x4([1, 1, 1, 1,
2, 2, 2, 2,
3, 3, 3, 3,
4, 4, 4, 4]);