Change vec2.cross out from vec2 to vec3

There is a mathematical reasoning behind it but I'm in a bit o a hurry to explain. Anyway, it works like this and it's documented like this. http://glmatrix.net/docs/module-vec2.html
This commit is contained in:
Lucas de Ávila Martins
2017-09-26 22:15:59 -03:00
committed by GitHub
parent 7bce34cb90
commit c0ccefc056

View File

@@ -343,7 +343,7 @@ declare module 'gl-matrix' {
* @param b the second operand
* @returns out
*/
public static cross(out: vec2, a: vec2 | number[], b: vec2 | number[]): vec2;
public static cross(out: vec3, a: vec2 | number[], b: vec2 | number[]): vec2;
/**
* Performs a linear interpolation between two vec2's