Browse Source

add missing typescript declaration of Vector2.cross

zhaoy 6 years ago
parent
commit
d582d1a345
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/math/Vector2.d.ts

+ 5 - 0
src/math/Vector2.d.ts

@@ -305,6 +305,11 @@ export class Vector2 implements Vector {
    */
    */
   dot(v: Vector2): number;
   dot(v: Vector2): number;
 
 
+  /**
+   * Computes cross product of this vector and v.
+   */
+  cross(v: Vector2): number;
+
   /**
   /**
    * Computes squared length of this vector.
    * Computes squared length of this vector.
    */
    */