Просмотр исходного кода

Merge pull request #16092 from yaoyao-cn/tem

add missing typescript declaration of Vector2.cross
Mr.doob 7 лет назад
Родитель
Сommit
0d18a759b5
1 измененных файлов с 5 добавлено и 0 удалено
  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.
    */
    */

粤ICP备19079148号