Wonder-Technology/Wonder.js

View on GitHub
lib/js/src/construct/domain_layer/library/structure/matrix/Matrix4.bs.js

Summary

Maintainability
D
1 day
Test Coverage

File Matrix4.bs.js has 366 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

var Curry = require("bs-platform/lib/js/curry.js");
var Log$Wonderjs = require("../../log/Log.bs.js");
var Angle$Wonderjs = require("../Angle.bs.js");

    Function invert has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function invert(resultFloat32Arr, mat) {
      var a00 = mat[0];
      var a01 = mat[1];
      var a02 = mat[2];
      var a03 = mat[3];

      Function multiply has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function multiply(resultFloat32Arr, aMatTypeArr, bMatTypeArr) {
        var a00 = aMatTypeArr[0];
        var a01 = aMatTypeArr[1];
        var a02 = aMatTypeArr[2];
        var a03 = aMatTypeArr[3];

        Function fromTranslationRotationScale has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function fromTranslationRotationScale(resultFloat32Arr, param, param$1, param$2) {
          var sz = param$2[2];
          var sy = param$2[1];
          var sx = param$2[0];
          var w = param$1[3];

          Function getRotationTuple has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function getRotationTuple(matTypeArr) {
            var trace = matTypeArr[0] + matTypeArr[5] + matTypeArr[10];
            if (trace > 0) {
              var s = Math.sqrt(trace + 1.0) * 2;
              return [

            Function invertTo3x3 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function invertTo3x3(resultFloat32Arr, mat) {
              var a00 = mat[0];
              var a01 = mat[1];
              var a02 = mat[2];
              var a10 = mat[4];

              Function buildPerspective has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function buildPerspective(resultFloat32Arr, param) {
                var far = param[3];
                var near = param[2];
                var aspect = param[1];
                var fovy = param[0];

                Function getEulerAngles has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function getEulerAngles(matTypeArr) {
                  var match = getScaleTuple(matTypeArr);
                  var sy = match[1];
                  var sx = match[0];
                  var a00 = matTypeArr[0];

                  There are no issues that match your filters.

                  Category
                  Status