Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "gama", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/honzabrecka/gama", | ||
@@ -25,6 +25,3 @@ "authors": [ | ||
"coverage" | ||
], | ||
"devDependencies": { | ||
"bootstrap": "3.3.*" | ||
} | ||
] | ||
} |
@@ -10,4 +10,2 @@ var gulp = require('gulp'); | ||
var header = require('gulp-header'); | ||
var jsdoc = require('gulp-jsdoc'); | ||
var less = require('gulp-less'); | ||
@@ -62,16 +60,2 @@ var pkg = require('./package.json'); | ||
gulp.task('jsdoc', function() { | ||
gulp | ||
.src(['./src/*.js', './README.md']) | ||
.pipe(jsdoc.parser()) | ||
.pipe(jsdoc.generator('./docs', {path: 'lib/doc/jsdoc-template/'})); | ||
}); | ||
gulp.task('jsdoc-style', function() { | ||
gulp | ||
.src('./lib/doc/less/style.less') | ||
.pipe(less()) | ||
.pipe(gulp.dest('./docs/')); | ||
}); | ||
gulp.task('default', ['lint', 'test'], function() | ||
@@ -78,0 +62,0 @@ { |
{ | ||
"name": "gama", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A practical 2D math/geometry library for functional JavaScript, based on ramda.", | ||
@@ -21,21 +21,16 @@ "keywords": [ | ||
"dependencies": { | ||
"ramda": "0.13.*" | ||
"ramda": "0.15.*" | ||
}, | ||
"devDependencies": { | ||
"gulp": "3.8.*", | ||
"gulp-istanbul": "0.*", | ||
"gulp-jshint": "1.*", | ||
"gulp-mocha": "2.*", | ||
"gulp-uglify": "1.*", | ||
"gulp": "3.9.*", | ||
"gulp-istanbul": "0.10.*", | ||
"gulp-jshint": "1.11.*", | ||
"gulp-mocha": "2.1.*", | ||
"gulp-uglify": "1.2.*", | ||
"chai": "3.0.*", | ||
"browserify": "7.*", | ||
"vinyl-source-stream": "1.*", | ||
"vinyl-buffer": "1.*", | ||
"gulp-header": "1.*", | ||
"gulp-jsdoc": "0.1.*", | ||
"marked": "0.3.*", | ||
"handlebars": "2.0.*", | ||
"highlight.js": "8.4.*", | ||
"gulp-less": "3.0.*" | ||
"browserify": "10.2.*", | ||
"vinyl-source-stream": "1.1.*", | ||
"vinyl-buffer": "1.0.*", | ||
"gulp-header": "1.2.*" | ||
} | ||
} |
@@ -28,6 +28,2 @@ # Γ [![Build Status](https://travis-ci.org/honzabrecka/gama.svg?branch=master)](https://travis-ci.org/honzabrecka/gama) | ||
## Documentation | ||
Please review the [API documentation](http://honzabrecka.com/gama). | ||
## Building | ||
@@ -34,0 +30,0 @@ |
@@ -530,2 +530,32 @@ // ----------------------------------------------------------------------- | ||
/** | ||
* Inverts matrix. | ||
* | ||
* @func | ||
* @category matrix | ||
* @sig Matrix -> Matrix | ||
* @param {Matrix} matrix | ||
* @return {Matrix} | ||
*/ | ||
gama.invertMatrix = function(matrix) { | ||
var det = matrix[0] * matrix[4] * matrix[8] + | ||
matrix[3] * matrix[7] * matrix[2] + | ||
matrix[6] * matrix[1] * matrix[5] - | ||
matrix[0] * matrix[7] * matrix[5] - | ||
matrix[3] * matrix[1] * matrix[8] - | ||
matrix[6] * matrix[4] * matrix[2]; | ||
return [ | ||
(matrix[4] * matrix[8] - matrix[7] * matrix[5]) / det, | ||
(matrix[7] * matrix[2] - matrix[1] * matrix[8]) / det, | ||
(matrix[1] * matrix[5] - matrix[4] * matrix[2]) / det, | ||
(matrix[6] * matrix[5] - matrix[3] * matrix[8]) / det, | ||
(matrix[0] * matrix[8] - matrix[6] * matrix[2]) / det, | ||
(matrix[3] * matrix[2] - matrix[0] * matrix[5]) / det, | ||
(matrix[3] * matrix[7] - matrix[6] * matrix[4]) / det, | ||
(matrix[6] * matrix[1] - matrix[0] * matrix[7]) / det, | ||
(matrix[0] * matrix[4] - matrix[3] * matrix[1]) / det | ||
]; | ||
}; | ||
/** | ||
* Applies a rotation transformation to the matrix. | ||
@@ -532,0 +562,0 @@ * |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
57222
10
7
988
2
45
2
+ Addedramda@0.15.1(transitive)
- Removedramda@0.13.0(transitive)
Updatedramda@0.15.*