Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into refactor-julianDate
Browse files Browse the repository at this point in the history
Conflicts:
	CHANGES.md
  • Loading branch information
mramato committed Jun 11, 2014
2 parents b42ac31 + 64df948 commit 65e4452
Show file tree
Hide file tree
Showing 96 changed files with 1,801 additions and 1,506 deletions.
12 changes: 6 additions & 6 deletions Apps/Sandcastle/gallery/Terrain.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@

if (scene.mode === Cesium.SceneMode.SCENE3D) {
eye = new Cesium.Cartesian3(294572.0645397696, 5637826.573008351, 2978624.6868285);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9028130862217908, -0.42449297750082904, -0.06880583840911567));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9028130862217908, -0.42449297750082904, -0.06880583840911567), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(0.40668971896562117, 0.790807045510862, 0.45741413322152297);
scene.camera.lookAt(eye, target, up);
} else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
eye = new Cesium.Cartesian3(9684590.891310014, 3114799.076252769, 9849.375792522824);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8929328433855669, -0.00005779973945286486, -0.45018988645076763));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8929328433855669, -0.00005779973945286486, -0.45018988645076763), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(-0.4501898855076042, -0.0000291369789812141, 0.8929328452557279);
scene.camera.lookAt(eye, target, up);
} else {
Expand All @@ -65,12 +65,12 @@

if (scene.mode === Cesium.SceneMode.SCENE3D) {
eye = new Cesium.Cartesian3(-2496304.1498512086, -4391818.97382059, 3884176.4503971986);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9279518715011381, -0.29488412129953234, -0.22792252890604328));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9279518715011381, -0.29488412129953234, -0.22792252890604328), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(-0.11836693744723503, -0.8130611584421428, 0.5700182635106171);
scene.camera.lookAt(eye, target, up);
} else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
eye = new Cesium.Cartesian3(-13314946.646404704, 4200941.442507448, 2468.225945515426);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9624895834866811, 0.04124314776883213, -0.26816562874787864));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9624895834866811, 0.04124314776883213, -0.26816562874787864), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(0.2679197697914868, 0.011480478929947842, 0.9633728227203466);
scene.camera.lookAt(eye, target, up);
} else {
Expand All @@ -83,12 +83,12 @@

if (scene.mode === Cesium.SceneMode.SCENE3D) {
eye = new Cesium.Cartesian3(-2674718.9291375633, -4332137.224608461, 3888180.6614196445);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.40034097132786534, 0.9155843741828319, 0.03784653786617176));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.40034097132786534, 0.9155843741828319, 0.03784653786617176), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(-0.6502679490649945, -0.3129458646313862, 0.6922546353438556);
scene.camera.lookAt(eye, target, up);
} else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
eye = new Cesium.Cartesian3(-13562569.113918452, 4176598.9965795614, 37656.37201701476);
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8108519561707095, 0.4023795334200999, -0.42498213639958615));
target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8108519561707095, 0.4023795334200999, -0.42498213639958615), new Cesium.Cartesian3());
up = new Cesium.Cartesian3(-0.3806859699462094, 0.18891270085627615, 0.905201736488051);
scene.camera.lookAt(eye, target, up);
} else {
Expand Down
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Beta Releases
* CZML property references now use a `#` symbol to separate identifier from property path. `objectId.position` should now be `objectId#position`.
* `CesiumWidget.showErrorPanel` now takes a `message` parameter in between the previous `title` and `error` parameters.
* `Event.removeEventListener` no longer throws `DeveloperError` if the `listener` does not exist; it now returns `false`.
* All `Cartesain2`, `Cartesian3` and `Cartesian4` functions that take a `result` parameter now require the parameter (except for functions starting with `from`).
* Moved `LeapSecond.leapSeconds` to `JulianDate.leapSeconds`.
* Refactored `JulianDate` to be in line with other Core types.
* Most functions now take result parameters.
Expand Down Expand Up @@ -61,6 +62,8 @@ Beta Releases
* Added `PerformanceWatchdog` widget and `viewerPerformanceWatchdogMixin`.
* Fixed a problem that could rarely lead to the camera's `tilt` property being `NaN`.
* Updated third-party [Tween.js](https://github.com/sole/tween.js/) from r7 to r13.
* `Viewer` can now optionally be constructed with a `DataSourceCollection`. Previously, it always created one itself internally.
* `GeoJsonDataSource` no longer uses the `name` or `title` property of the feature as the dynamic object's name if the value of the property is null.

### b29 - 2014-06-02

Expand Down Expand Up @@ -110,7 +113,7 @@ Beta Releases

* Breaking changes ([why so many?](https://groups.google.com/forum/#!topic/cesium-dev/CQ0wCHjJ9x4)):
* Renamed and moved `Scene.primitives.centralBody` moved to `Scene.globe`.
* Removed `CesiumWidget.centralBody` and `Viewer.centralBody`. Use `Scene.globe`.
* Removed `CesiumWidget.centralBody` and `Viewer.centralBody`. Use `CesiumWidget.scene.globe` and `Viewer.scene.globe`.
* Renamed `CentralBody` to `Globe`.
* Replaced `Model.computeWorldBoundingSphere` with `Model.boundingSphere`.
* Refactored visualizers, removing `setDynamicObjectCollection`, `getDynamicObjectCollection`, `getScene`, and `removeAllPrimitives` which are all superfluous after the introduction of `DataSourceDisplay`. The affected classes are:
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AxisAlignedBoundingBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ define([

//If center was not defined, compute it.
if (!defined(center)) {
center = Cartesian3.add(this.minimum, this.maximum);
center = Cartesian3.add(this.minimum, this.maximum, new Cartesian3());
Cartesian3.multiplyByScalar(center, 0.5, center);
} else {
center = Cartesian3.clone(center);
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/BoxGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ define([
}
//>>includeEnd('debug');

var corner = Cartesian3.multiplyByScalar(dimensions, 0.5);
var min = Cartesian3.negate(corner);
var corner = Cartesian3.multiplyByScalar(dimensions, 0.5, new Cartesian3());
var min = Cartesian3.negate(corner, new Cartesian3());
var max = corner;

var newOptions = {
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/BoxOutlineGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ define([
}
//>>includeEnd('debug');

var corner = Cartesian3.multiplyByScalar(dimensions, 0.5);
var min = Cartesian3.negate(corner);
var corner = Cartesian3.multiplyByScalar(dimensions, 0.5, new Cartesian3());
var min = Cartesian3.negate(corner, new Cartesian3());
var max = corner;

var newOptions = {
Expand Down
Loading

0 comments on commit 65e4452

Please sign in to comment.