All files / construct/domain_layer/domain/scene/scene_graph/value_object RotationVO.bs.js

77.78% Statements 7/9
100% Branches 0/0
50% Functions 2/4
77.78% Lines 7/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32    17x     44x           44x                             17x 17x 17x 17x    
'use strict';
 
var Quaternion$Wonderjs = require("../../../../library/structure/Quaternion.bs.js");
 
function create(value) {
  return /* Rotation */{
          _0: value
        };
}
 
function value(rotation) {
  return rotation._0;
}
 
function invert(rotation) {
  return /* Rotation */{
          _0: Quaternion$Wonderjs.invert(rotation._0)
        };
}
 
function multiply(rot1, rot2) {
  return /* Rotation */{
          _0: Quaternion$Wonderjs.multiply(rot1._0, rot2._0)
        };
}
 
exports.create = create;
exports.value = value;
exports.invert = invert;
exports.multiply = multiply;
/* No side effect */