瀏覽代碼

Documenting the new function

Raanan Weber 7 年之前
父節點
當前提交
a53f1d11a9
共有 2 個文件被更改,包括 3869 次插入3863 次删除
  1. 3863 3863
      dist/preview release/babylon.d.ts
  2. 6 0
      src/babylon.scene.ts

文件差異過大導致無法顯示
+ 3863 - 3863
dist/preview release/babylon.d.ts


+ 6 - 0
src/babylon.scene.ts

@@ -4230,6 +4230,12 @@
         }
 
         // Octrees
+        /**
+         * Get the world extend vectors with an optional filter
+         * 
+         * @param {(mesh: AbstractMesh) => boolean} [filterPredicate] the predicate - which meshes should be included when calculating the world size
+         * @returns {{ min: Vector3; max: Vector3 }} min and max vectors
+         */
         public getWorldExtends(filterPredicate?: (mesh: AbstractMesh) => boolean): { min: Vector3; max: Vector3 } {
             var min = new Vector3(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE);
             var max = new Vector3(-Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MAX_VALUE);