@@ -777,15 +777,15 @@ function removePrimitive(entity, hash, primitives) {
777
777
}
778
778
}
779
779
780
- const defaultIntersectionColor = Color . WHITE ;
781
- const defaultIntersectionWidth = 1.0 ;
782
- const defaultRadius = Number . POSITIVE_INFINITY ;
780
+ const defaultIntersectionColor$2 = Color . WHITE ;
781
+ const defaultIntersectionWidth$2 = 1.0 ;
782
+ const defaultRadius$2 = Number . POSITIVE_INFINITY ;
783
783
784
- const matrix3Scratch = new Matrix3 ( ) ;
785
- const cachedPosition = new Cartesian3 ( ) ;
786
- const cachedOrientation = new Quaternion ( ) ;
784
+ const matrix3Scratch$2 = new Matrix3 ( ) ;
785
+ const cachedPosition$2 = new Cartesian3 ( ) ;
786
+ const cachedOrientation$2 = new Quaternion ( ) ;
787
787
788
- function assignSpherical ( index , array , clock , cone ) {
788
+ function assignSpherical$1 ( index , array , clock , cone ) {
789
789
var spherical = array [ index ] ;
790
790
if ( ! defined ( spherical ) ) {
791
791
spherical = new Spherical ( ) ;
@@ -806,21 +806,21 @@ function computeDirections(primitive, minimumClockAngle, maximumClockAngle, inne
806
806
// No clock angle limits, so this is just a circle.
807
807
// There might be a hole but we're ignoring it for now.
808
808
for ( angle = 0.0 ; angle < CesiumMath . TWO_PI ; angle += angleStep ) {
809
- assignSpherical ( i ++ , directions , angle , outerHalfAngle ) ;
809
+ assignSpherical$1 ( i ++ , directions , angle , outerHalfAngle ) ;
810
810
}
811
811
} else {
812
812
// There are clock angle limits.
813
813
for ( angle = minimumClockAngle ; angle < maximumClockAngle ; angle += angleStep ) {
814
- assignSpherical ( i ++ , directions , angle , outerHalfAngle ) ;
814
+ assignSpherical$1 ( i ++ , directions , angle , outerHalfAngle ) ;
815
815
}
816
- assignSpherical ( i ++ , directions , maximumClockAngle , outerHalfAngle ) ;
816
+ assignSpherical$1 ( i ++ , directions , maximumClockAngle , outerHalfAngle ) ;
817
817
if ( innerHalfAngle ) {
818
818
for ( angle = maximumClockAngle ; angle > minimumClockAngle ; angle -= angleStep ) {
819
- assignSpherical ( i ++ , directions , angle , innerHalfAngle ) ;
819
+ assignSpherical$1 ( i ++ , directions , angle , innerHalfAngle ) ;
820
820
}
821
- assignSpherical ( i ++ , directions , minimumClockAngle , innerHalfAngle ) ;
821
+ assignSpherical$1 ( i ++ , directions , minimumClockAngle , innerHalfAngle ) ;
822
822
} else {
823
- assignSpherical ( i ++ , directions , maximumClockAngle , 0.0 ) ;
823
+ assignSpherical$1 ( i ++ , directions , maximumClockAngle , 0.0 ) ;
824
824
}
825
825
}
826
826
directions . length = i ;
@@ -884,8 +884,8 @@ ConicSensorVisualizer.prototype.update = function(time) {
884
884
var show = entity . isShowing && entity . isAvailable ( time ) && Property . getValueOrDefault ( conicSensorGraphics . _show , time , true ) ;
885
885
886
886
if ( show ) {
887
- position = Property . getValueOrUndefined ( entity . _position , time , cachedPosition ) ;
888
- orientation = Property . getValueOrUndefined ( entity . _orientation , time , cachedOrientation ) ;
887
+ position = Property . getValueOrUndefined ( entity . _position , time , cachedPosition$2 ) ;
888
+ orientation = Property . getValueOrUndefined ( entity . _orientation , time , cachedOrientation$2 ) ;
889
889
show = defined ( position ) && defined ( orientation ) ;
890
890
}
891
891
@@ -916,7 +916,7 @@ ConicSensorVisualizer.prototype.update = function(time) {
916
916
}
917
917
918
918
if ( ! Cartesian3 . equals ( position , data . position ) || ! Quaternion . equals ( orientation , data . orientation ) ) {
919
- Matrix4 . fromRotationTranslation ( Matrix3 . fromQuaternion ( orientation , matrix3Scratch ) , position , primitive . modelMatrix ) ;
919
+ Matrix4 . fromRotationTranslation ( Matrix3 . fromQuaternion ( orientation , matrix3Scratch$2 ) , position , primitive . modelMatrix ) ;
920
920
data . position = Cartesian3 . clone ( position , data . position ) ;
921
921
data . orientation = Quaternion . clone ( orientation , data . orientation ) ;
922
922
}
@@ -939,10 +939,10 @@ ConicSensorVisualizer.prototype.update = function(time) {
939
939
data . minimumClockAngle = minimumClockAngle ;
940
940
}
941
941
942
- primitive . radius = Property . getValueOrDefault ( conicSensorGraphics . _radius , time , defaultRadius ) ;
942
+ primitive . radius = Property . getValueOrDefault ( conicSensorGraphics . _radius , time , defaultRadius$2 ) ;
943
943
primitive . lateralSurfaceMaterial = MaterialProperty . getValue ( time , conicSensorGraphics . _lateralSurfaceMaterial , primitive . lateralSurfaceMaterial ) ;
944
- primitive . intersectionColor = Property . getValueOrClonedDefault ( conicSensorGraphics . _intersectionColor , time , defaultIntersectionColor , primitive . intersectionColor ) ;
945
- primitive . intersectionWidth = Property . getValueOrDefault ( conicSensorGraphics . _intersectionWidth , time , defaultIntersectionWidth ) ;
944
+ primitive . intersectionColor = Property . getValueOrClonedDefault ( conicSensorGraphics . _intersectionColor , time , defaultIntersectionColor$2 , primitive . intersectionColor ) ;
945
+ primitive . intersectionWidth = Property . getValueOrDefault ( conicSensorGraphics . _intersectionWidth , time , defaultIntersectionWidth$2 ) ;
946
946
}
947
947
return true ;
948
948
} ;
@@ -1446,7 +1446,7 @@ RectangularSensorGraphics.prototype.merge = function(source) {
1446
1446
this . lateralSurfaceMaterial = defaultValue ( this . lateralSurfaceMaterial , source . lateralSurfaceMaterial ) ;
1447
1447
} ;
1448
1448
1449
- function assignSpherical$1 ( index , array , clock , cone ) {
1449
+ function assignSpherical ( index , array , clock , cone ) {
1450
1450
var spherical = array [ index ] ;
1451
1451
if ( ! defined ( spherical ) ) {
1452
1452
spherical = new Spherical ( ) ;
@@ -1466,10 +1466,10 @@ function updateDirections(rectangularSensor) {
1466
1466
var theta = Math . atan ( tanX / tanY ) ;
1467
1467
var cone = Math . atan ( Math . sqrt ( ( tanX * tanX ) + ( tanY * tanY ) ) ) ;
1468
1468
1469
- assignSpherical$1 ( 0 , directions , theta , cone ) ;
1470
- assignSpherical$1 ( 1 , directions , CesiumMath . toRadians ( 180.0 ) - theta , cone ) ;
1471
- assignSpherical$1 ( 2 , directions , CesiumMath . toRadians ( 180.0 ) + theta , cone ) ;
1472
- assignSpherical$1 ( 3 , directions , - theta , cone ) ;
1469
+ assignSpherical ( 0 , directions , theta , cone ) ;
1470
+ assignSpherical ( 1 , directions , CesiumMath . toRadians ( 180.0 ) - theta , cone ) ;
1471
+ assignSpherical ( 2 , directions , CesiumMath . toRadians ( 180.0 ) + theta , cone ) ;
1472
+ assignSpherical ( 3 , directions , - theta , cone ) ;
1473
1473
1474
1474
directions . length = 4 ;
1475
1475
rectangularSensor . _customSensor . directions = directions ;
@@ -1611,13 +1611,13 @@ RectangularPyramidSensorVolume.prototype.destroy = function() {
1611
1611
return destroyObject ( this ) ;
1612
1612
} ;
1613
1613
1614
- const defaultIntersectionColor$2 = Color . WHITE ;
1615
- const defaultIntersectionWidth$2 = 1.0 ;
1616
- const defaultRadius$2 = Number . POSITIVE_INFINITY ;
1614
+ const defaultIntersectionColor = Color . WHITE ;
1615
+ const defaultIntersectionWidth = 1.0 ;
1616
+ const defaultRadius = Number . POSITIVE_INFINITY ;
1617
1617
1618
- const matrix3Scratch$2 = new Matrix3 ( ) ;
1619
- const cachedPosition$2 = new Cartesian3 ( ) ;
1620
- const cachedOrientation$2 = new Quaternion ( ) ;
1618
+ const matrix3Scratch = new Matrix3 ( ) ;
1619
+ const cachedPosition = new Cartesian3 ( ) ;
1620
+ const cachedOrientation = new Quaternion ( ) ;
1621
1621
1622
1622
/**
1623
1623
* A {@link Visualizer} which maps {@link Entity#rectangularSensor} to a {@link RectangularSensor}.
@@ -1676,8 +1676,8 @@ RectangularSensorVisualizer.prototype.update = function(time) {
1676
1676
var show = entity . isShowing && entity . isAvailable ( time ) && Property . getValueOrDefault ( rectangularSensorGraphics . _show , time , true ) ;
1677
1677
1678
1678
if ( show ) {
1679
- position = Property . getValueOrUndefined ( entity . _position , time , cachedPosition$2 ) ;
1680
- orientation = Property . getValueOrUndefined ( entity . _orientation , time , cachedOrientation$2 ) ;
1679
+ position = Property . getValueOrUndefined ( entity . _position , time , cachedPosition ) ;
1680
+ orientation = Property . getValueOrUndefined ( entity . _orientation , time , cachedOrientation ) ;
1681
1681
show = defined ( position ) && defined ( orientation ) ;
1682
1682
}
1683
1683
@@ -1704,18 +1704,18 @@ RectangularSensorVisualizer.prototype.update = function(time) {
1704
1704
}
1705
1705
1706
1706
if ( ! Cartesian3 . equals ( position , data . position ) || ! Quaternion . equals ( orientation , data . orientation ) ) {
1707
- Matrix4 . fromRotationTranslation ( Matrix3 . fromQuaternion ( orientation , matrix3Scratch$2 ) , position , primitive . modelMatrix ) ;
1707
+ Matrix4 . fromRotationTranslation ( Matrix3 . fromQuaternion ( orientation , matrix3Scratch ) , position , primitive . modelMatrix ) ;
1708
1708
data . position = Cartesian3 . clone ( position , data . position ) ;
1709
1709
data . orientation = Quaternion . clone ( orientation , data . orientation ) ;
1710
1710
}
1711
1711
1712
1712
primitive . show = true ;
1713
1713
primitive . xHalfAngle = Property . getValueOrDefault ( rectangularSensorGraphics . _xHalfAngle , time , CesiumMath . PI_OVER_TWO ) ;
1714
1714
primitive . yHalfAngle = Property . getValueOrDefault ( rectangularSensorGraphics . _yHalfAngle , time , CesiumMath . PI_OVER_TWO ) ;
1715
- primitive . radius = Property . getValueOrDefault ( rectangularSensorGraphics . _radius , time , defaultRadius$2 ) ;
1715
+ primitive . radius = Property . getValueOrDefault ( rectangularSensorGraphics . _radius , time , defaultRadius ) ;
1716
1716
primitive . lateralSurfaceMaterial = MaterialProperty . getValue ( time , rectangularSensorGraphics . _lateralSurfaceMaterial , primitive . lateralSurfaceMaterial ) ;
1717
- primitive . intersectionColor = Property . getValueOrClonedDefault ( rectangularSensorGraphics . _intersectionColor , time , defaultIntersectionColor$2 , primitive . intersectionColor ) ;
1718
- primitive . intersectionWidth = Property . getValueOrDefault ( rectangularSensorGraphics . _intersectionWidth , time , defaultIntersectionWidth$2 ) ;
1717
+ primitive . intersectionColor = Property . getValueOrClonedDefault ( rectangularSensorGraphics . _intersectionColor , time , defaultIntersectionColor , primitive . intersectionColor ) ;
1718
+ primitive . intersectionWidth = Property . getValueOrDefault ( rectangularSensorGraphics . _intersectionWidth , time , defaultIntersectionWidth ) ;
1719
1719
}
1720
1720
return true ;
1721
1721
} ;
@@ -1954,4 +1954,4 @@ var cesiumSensorVolumes = {
1954
1954
RectangularSensorVisualizer
1955
1955
} ;
1956
1956
1957
- export default cesiumSensorVolumes ;
1957
+ export { cesiumSensorVolumes as default } ;
0 commit comments