File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ define([
395
395
* @returns {Matrix3 } The modified result parameter or a new Matrix3 instance if none was provided.
396
396
*
397
397
* @example
398
- * //Set the view to in the inertial frame.
398
+ * //Set the view to the inertial frame.
399
399
* scene.postUpdate.addEventListener(function(scene, time) {
400
400
* var now = Cesium.JulianDate.now();
401
401
* var offset = Cesium.Matrix4.multiplyByPoint(camera.transform, camera.position, new Cesium.Cartesian3());
@@ -529,12 +529,11 @@ define([
529
529
*
530
530
* @example
531
531
* scene.postUpdate.addEventListener(function(scene, time) {
532
+ * // View in ICRF.
532
533
* var icrfToFixed = Cesium.Transforms.computeIcrfToFixedMatrix(time);
533
534
* if (Cesium.defined(icrfToFixed)) {
534
- * var offset = Cesium.Matrix4.multiplyByPoint(camera.transform, camera.position, new Cesium.Cartesian3());
535
- * var transform = Cesium.Matrix4.fromRotationTranslation(icrfToFixed)
536
- * var inverseTransform = Cesium.Matrix4.inverseTransformation(transform, new Cesium.Matrix4());
537
- * Cesium.Matrix4.multiplyByPoint(inverseTransform, offset, offset);
535
+ * var offset = Cesium.Cartesian3.clone(camera.position);
536
+ * var transform = Cesium.Matrix4.fromRotationTranslation(icrfToFixed);
538
537
* camera.lookAtTransform(transform, offset);
539
538
* }
540
539
* });
You can’t perform that action at this time.
0 commit comments