Browse Source

renamed center to centerOn to please sebavan

David Catuhe 7 years ago
parent
commit
d2bbba6432

File diff suppressed because it is too large
+ 7095 - 7095
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 1
dist/preview release/babylon.max.js

@@ -12845,7 +12845,7 @@ var BABYLON;
          * @param center New center of the bounding info
          * @param extend New extend of the bounding info
          */
-        BoundingInfo.prototype.center = function (center, extend) {
+        BoundingInfo.prototype.centerOn = function (center, extend) {
             this.minimum = center.subtract(extend);
             this.maximum = center.add(extend);
             this.boundingBox = new BABYLON.BoundingBox(this.minimum, this.maximum);

File diff suppressed because it is too large
+ 7095 - 7095
dist/preview release/babylon.module.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.worker.js


File diff suppressed because it is too large
+ 6725 - 6725
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 1 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -12845,7 +12845,7 @@ var BABYLON;
          * @param center New center of the bounding info
          * @param extend New extend of the bounding info
          */
-        BoundingInfo.prototype.center = function (center, extend) {
+        BoundingInfo.prototype.centerOn = function (center, extend) {
             this.minimum = center.subtract(extend);
             this.maximum = center.add(extend);
             this.boundingBox = new BABYLON.BoundingBox(this.minimum, this.maximum);

File diff suppressed because it is too large
+ 6725 - 6725
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 1 - 1
dist/preview release/what's new.md

@@ -22,7 +22,7 @@
 - Complete rework of Unity3D exporter. [Doc here](http://doc.babylonjs.com/resources/intro) ([MackeyK24](https://github.com/MackeyK24))
 
 ## Updates
-- Added `boundingInfo.center` to recreate the bounding info to be centered around a specific point given a specific extend ([deltakosh](https://github.com/deltakosh))
+- Added `boundingInfo.centerOn` to recreate the bounding info to be centered around a specific point given a specific extend ([deltakosh](https://github.com/deltakosh))
 - Added `mesh.normalizeToUnitCube` to uniformly scales the mesh to fit inside of a unit cube (1 X 1 X 1 units) ([deltakosh](https://github.com/deltakosh))
 - Added `scene.onDataLoadedObservable` which is raised when SceneLoader.Append or SceneLoader.Load or SceneLoader.ImportMesh were successfully executed ([deltakosh](https://github.com/deltakosh))
 - Support for adaptiveKernelBlur on MirrorTexture ([deltakosh](https://github.com/deltakosh))

+ 1 - 1
src/Culling/babylon.boundingInfo.ts

@@ -60,7 +60,7 @@
          * @param center New center of the bounding info
          * @param extend New extend of the bounding info
          */
-        public center(center: Vector3, extend: Vector3): BoundingInfo {
+        public centerOn(center: Vector3, extend: Vector3): BoundingInfo {
             this.minimum = center.subtract(extend);
             this.maximum = center.add(extend);