Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove reference to 'dest' in vec2.cross()

This fixes a copy and paste error: vec2.cross() was copied from
vec3.cross(), but no longer has a dest parameter (since it's not needed
for this function). But the body of the function still had a reference
to 'dest' which I'd forgotten to delete.
  • Loading branch information...
commit e6262041316bca166450c6a3601230d2e3c85b8e 1 parent 9c48018
@vilya authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  gl-matrix.js
View
2  gl-matrix.js
@@ -263,8 +263,6 @@ vec2.normalize = function (vec, dest) {
* @returns {number} The cross product of vec and v2.
*/
vec2.cross = function (vec, v2) {
- if (!dest) { dest = vec; }
-
var x = vec[0], y = vec[1],
x2 = v2[0], y2 = v2[1];
Please sign in to comment.
Something went wrong with that request. Please try again.