mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 01:39:07 +00:00
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:
committed by
GitHub
parent
7bce34cb90
commit
c0ccefc056
2
types/gl-matrix/index.d.ts
vendored
2
types/gl-matrix/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user