Skip to content

Commit

Permalink
Got quaternions building
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeLudwig committed Jun 21, 2020
1 parent 946d987 commit 38f33e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/aardvark-shared/custom_types/quaternion.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "quaternion";
5 changes: 2 additions & 3 deletions packages/aardvark-shared/src/math_utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { MinimalPose, AvNodeTransform } from '@aardvarkxr/aardvark-shared';
import { MinimalPose, AvNodeTransform } from './aardvark_protocol';
import { vec3, mat4, vec4, mat3, quat } from '@tlaukkan/tsm';

const Quaternion = require( 'quaternion' );
import * as Quaternion from 'quaternion';

export function translateMat( t: vec3)
{
Expand Down
5 changes: 5 additions & 0 deletions packages/aardvark-shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"common/*" : [ "common/*" ],
"*" : [ "node_modules/@types/*", "node_modules/*", "*" ]
},
"typeRoots":
[
"node_modules/@types",
"customTypes"
],
"moduleResolution" : "node"
}
}

0 comments on commit 38f33e0

Please sign in to comment.