jotinha 12 年之前
父節點
當前提交
86643fcbef
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/unit/math/Ray.js

+ 2 - 2
test/unit/math/Ray.js

@@ -244,12 +244,12 @@ test( "intersectBox", function() {
 	ok( d.intersectBox(box).distanceTo( new THREE.Vector3( 0, 1, 0 ) ) < TOL, "Passed!" );	
 	ok( d.intersectBox(box).distanceTo( new THREE.Vector3( 0, 1, 0 ) ) < TOL, "Passed!" );	
 
 
 	var e = new THREE.Ray( new THREE.Vector3( 1, -2, 1 ), new THREE.Vector3( 0, 1, 0).normalize() );
 	var e = new THREE.Ray( new THREE.Vector3( 1, -2, 1 ), new THREE.Vector3( 0, 1, 0).normalize() );
-	//handle case where ray is coplar with one of the boxes side - box in front of ray
+	//handle case where ray is coplanar with one of the boxes side - box in front of ray
 	ok( e.isIntersectionBox(box) === true, "Passed!" );
 	ok( e.isIntersectionBox(box) === true, "Passed!" );
 	ok( e.intersectBox(box).distanceTo( new THREE.Vector3( 1, -1, 1 ) ) < TOL, "Passed!" );	
 	ok( e.intersectBox(box).distanceTo( new THREE.Vector3( 1, -1, 1 ) ) < TOL, "Passed!" );	
 	
 	
 	var f = new THREE.Ray( new THREE.Vector3( 1, -2, 0 ), new THREE.Vector3( 0, -1, 0).normalize() );
 	var f = new THREE.Ray( new THREE.Vector3( 1, -2, 0 ), new THREE.Vector3( 0, -1, 0).normalize() );
-	//handle case where ray is coplar with one of the boxes side - box behind ray
+	//handle case where ray is coplanar with one of the boxes side - box behind ray
 	ok( f.isIntersectionBox(box) === false, "Passed!" );
 	ok( f.isIntersectionBox(box) === false, "Passed!" );
 	ok( f.intersectBox(box) == null, "Passed!" );		
 	ok( f.intersectBox(box) == null, "Passed!" );