Skip to content

Commit 0ed700e

Browse files
committed
Deprecate ObjectOrientedBoundingBox
1 parent f495f4e commit 0ed700e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Change Log
33

44
### 1.11 - 2015-07-01
55

6+
* Deprecated
7+
* Deprecated the `ObjectOrientedBoundingBox` class. It will be removed in 1.12. Use `OrientedBoundingBox`, which is very similar.
68
* Improved the algorithm that `Camera.viewRectangle` uses to select the position of the camera, so that the specified rectangle is now better centered on the screen [#2764](https://github.com/AnalyticalGraphicsInc/cesium/issues/2764).
79
* The performance statistics displayed by setting `scene.debugShowFramesPerSecond` to `true` can now be styled using the `cesium-performanceDisplay` CSS classes in `shared.css` [#2779](https://github.com/AnalyticalGraphicsInc/cesium/issues/2779).
810
* Fixed a crash when `viewer.zoomTo` or `viewer.flyTo` were called immediately before or during a scene morph [#2775](https://github.com/AnalyticalGraphicsInc/cesium/issues/2775).

Source/Core/ObjectOrientedBoundingBox.js

+5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ define([
44
'./defaultValue',
55
'./defined',
66
'./DeveloperError',
7+
'./deprecationWarning',
78
'./Matrix3'
89
], function(
910
Cartesian3,
1011
defaultValue,
1112
defined,
1213
DeveloperError,
14+
deprecationWarning,
1315
Matrix3) {
1416
"use strict";
1517

@@ -19,6 +21,7 @@ define([
1921
* It is oriented, so it can provide an optimum fit, it can bound more tightly.
2022
* @alias ObjectOrientedBoundingBox
2123
* @constructor
24+
* @deprecated
2225
*
2326
* @param {Matrix3} [rotation=Matrix3.IDENTITY] The transformation matrix, to rotate the box to the right position.
2427
* @param {Cartesian3} [translation=Cartesian3.ZERO] The position of the box.
@@ -38,6 +41,8 @@ define([
3841
* var oobb = new Cesium.ObjectOrientedBoundingBox(rotation, translation, scale);
3942
*/
4043
var ObjectOrientedBoundingBox = function(rotation, translation, scale) {
44+
deprecationWarning('ObjectOrientedBoundingBox', 'ObjectOrientedBoundingBox was deprecated in Cesium 1.11. It will be removed in 1.12. Use OrientedBoundingBox instead.');
45+
4146
/**
4247
* The transformation matrix, to rotate the box to the right position.
4348
* @type {Matrix3}

0 commit comments

Comments
 (0)