From d8c2dcfc1421a1bad0612b6fbad806cb91fe2037 Mon Sep 17 00:00:00 2001 From: Thorsten Bux Date: Sun, 10 Jun 2018 10:04:46 +0200 Subject: [PATCH] Make util functions static --- js/artoolkit.api.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/js/artoolkit.api.js b/js/artoolkit.api.js index 43fb3af2..045c7d5b 100644 --- a/js/artoolkit.api.js +++ b/js/artoolkit.api.js @@ -197,8 +197,8 @@ } visible.inCurrent = true; - this.transMatToGLMat(visible.matrix, this.transform_mat); - this.transformGL_RH = this.arglCameraViewRHf(this.transform_mat); + ARController.transMatToGLMat(visible.matrix, this.transform_mat); + this.transformGL_RH = ARController.arglCameraViewRHf(this.transform_mat); this.dispatchEvent({ name: 'getMarker', target: this, @@ -218,8 +218,8 @@ visible = false; artoolkit.getTransMatMultiSquareRobust(this.id, i); - this.transMatToGLMat(this.marker_transform_mat, this.transform_mat); - this.transformGL_RH = this.arglCameraViewRHf(this.transform_mat); + ARController.transMatToGLMat(this.marker_transform_mat, this.transform_mat); + this.transformGL_RH = ARController.arglCameraViewRHf(this.transform_mat); for (j=0; j