@@ -24,7 +24,7 @@ defineSuite([
24
24
new Plane ( Cartesian3 . UNIT_Y , 2.0 )
25
25
] ;
26
26
27
- var transform = new Matrix4 . fromTranslation ( new Cartesian3 ( 1.0 , 2 .0, 3 .0) ) ;
27
+ var transform = new Matrix4 . fromTranslation ( new Cartesian3 ( 1.0 , 3 .0, 2 .0) ) ;
28
28
var boundingVolume = new BoundingSphere ( Cartesian3 . ZERO , 1.0 ) ;
29
29
30
30
it ( 'default constructor' , function ( ) {
@@ -125,8 +125,8 @@ defineSuite([
125
125
126
126
var result = clippingPlanes . transformAndPackPlanes ( transform ) ;
127
127
expect ( result . length ) . toEqual ( 2 ) ;
128
- expect ( result [ 0 ] ) . toEqual ( new Cartesian4 ( 1.0 , 0.0 , 0.0 , - 2 .0) ) ;
129
- expect ( result [ 1 ] ) . toEqual ( new Cartesian4 ( 0.0 , 1.0 , 0.0 , - 4 .0) ) ;
128
+ expect ( result [ 0 ] ) . toEqual ( new Cartesian4 ( 1.0 , 0.0 , 0.0 , 0 .0) ) ;
129
+ expect ( result [ 1 ] ) . toEqual ( new Cartesian4 ( 0.0 , 1.0 , 0.0 , - 1 .0) ) ;
130
130
} ) ;
131
131
132
132
it ( 'transforms and packs planes with no result parameter creates new array' , function ( ) {
@@ -203,15 +203,15 @@ defineSuite([
203
203
var intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
204
204
expect ( intersect ) . toEqual ( Intersect . INSIDE ) ;
205
205
206
- clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_X , 2.0 ) ) ;
206
+ clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_X , - 2.0 ) ) ;
207
207
intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
208
208
expect ( intersect ) . toEqual ( Intersect . OUTSIDE ) ;
209
209
210
210
clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_Y , 0.0 ) ) ;
211
211
intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
212
212
expect ( intersect ) . toEqual ( Intersect . INTERSECTING ) ;
213
213
214
- clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_Z , - 1.0 ) ) ;
214
+ clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_Z , 1.0 ) ) ;
215
215
intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
216
216
expect ( intersect ) . toEqual ( Intersect . INSIDE ) ;
217
217
@@ -228,11 +228,11 @@ defineSuite([
228
228
var intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
229
229
expect ( intersect ) . toEqual ( Intersect . INSIDE ) ;
230
230
231
- clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_Z , - 1.0 ) ) ;
231
+ clippingPlanes . add ( new Plane ( Cartesian3 . UNIT_Z , 1.0 ) ) ;
232
232
intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
233
233
expect ( intersect ) . toEqual ( Intersect . INSIDE ) ;
234
234
235
- var temp = new Plane ( Cartesian3 . UNIT_Y , 2.0 ) ;
235
+ var temp = new Plane ( Cartesian3 . UNIT_Y , - 2.0 ) ;
236
236
clippingPlanes . add ( temp ) ;
237
237
intersect = clippingPlanes . computeIntersectionWithBoundingVolume ( boundingVolume ) ;
238
238
expect ( intersect ) . toEqual ( Intersect . OUTSIDE ) ;
0 commit comments