text: /**
   * @author bhouston / http://exocortex.com
   */
  
  QUnit.module( "Box2" );
  
  QUnit.test( "constructor" , function( assert ) {
  	var a = new THREE.Box2();
  	assert.ok( a.min.equals( posInf2 ), "Passed!" );
  	assert.ok( a.max.equals( negInf2 ), "Passed!" );
  
  	a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	assert.ok( a.min.equals( zero2 ), "Passed!" );
  	assert.ok( a.max.equals( zero2 ), "Passed!" );
  
  	a = new THREE.Box2( zero2.clone(), one2.clone() );
  	assert.ok( a.min.equals( zero2 ), "Passed!" );
  	assert.ok( a.max.equals( one2 ), "Passed!" );
  });
  
  QUnit.test( "copy" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), one2.clone() );
  	var b = new THREE.Box2().copy( a );
  	assert.ok( b.min.equals( zero2 ), "Passed!" );
  	assert.ok( b.max.equals( one2 ), "Passed!" );
  
  	// ensure that it is a true copy
  	a.min = zero2;
  	a.max = one2;
  	assert.ok( b.min.equals( zero2 ), "Passed!" );
  	assert.ok( b.max.equals( one2 ), "Passed!" );
  });
  
  QUnit.test( "set" , function( assert ) {
  	var a = new THREE.Box2();
  
  	a.set( zero2, one2 );
  	assert.ok( a.min.equals( zero2 ), "Passed!" );
  	assert.ok( a.max.equals( one2 ), "Passed!" );
  });
  
  QUnit.test( "setFromPoints" , function( assert ) {
  	var a = new THREE.Box2();
  
  	a.setFromPoints( [ zero2, one2, two2 ] );
  	assert.ok( a.min.equals( zero2 ), "Passed!" );
  	assert.ok( a.max.equals( two2 ), "Passed!" );
  
  	a.setFromPoints( [ one2 ] );
  	assert.ok( a.min.equals( one2 ), "Passed!" );
  	assert.ok( a.max.equals( one2 ), "Passed!" );
  
  	a.setFromPoints( [] );
  	assert.ok( a.isEmpty(), "Passed!" );
  });
  
  QUnit.test( "empty/makeEmpty", function( assert ) {
  	var a = new THREE.Box2();
  
  	assert.ok( a.isEmpty(), "Passed!" );
  
  	var a = new THREE.Box2( zero2.clone(), one2.clone() );
  	assert.ok( ! a.isEmpty(), "Passed!" );
  
  	a.makeEmpty();
  	assert.ok( a.isEmpty(), "Passed!" );
  });
  
  QUnit.test( "getCenter" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	assert.ok( a.getCenter().equals( zero2 ), "Passed!" );
  
  	a = new THREE.Box2( zero2, one2 );
  	var midpoint = one2.clone().multiplyScalar( 0.5 );
  	assert.ok( a.getCenter().equals( midpoint ), "Passed!" );
  });
  
  QUnit.test( "getSize" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	assert.ok( a.getSize().equals( zero2 ), "Passed!" );
  
  	a = new THREE.Box2( zero2.clone(), one2.clone() );
  	assert.ok( a.getSize().equals( one2 ), "Passed!" );
  });
  
  
  QUnit.test( "expandByPoint" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	a.expandByPoint( zero2 );
  	assert.ok( a.getSize().equals( zero2 ), "Passed!" );
  
  	a.expandByPoint( one2 );
  	assert.ok( a.getSize().equals( one2 ), "Passed!" );
  
  	a.expandByPoint( one2.clone().negate() );
  	assert.ok( a.getSize().equals( one2.clone().multiplyScalar( 2 ) ), "Passed!" );
  	assert.ok( a.getCenter().equals( zero2 ), "Passed!" );
  });
  
  QUnit.test( "expandByVector" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	a.expandByVector( zero2 );
  	assert.ok( a.getSize().equals( zero2 ), "Passed!" );
  
  	a.expandByVector( one2 );
  	assert.ok( a.getSize().equals( one2.clone().multiplyScalar( 2 ) ), "Passed!" );
  	assert.ok( a.getCenter().equals( zero2 ), "Passed!" );
  });
  
  QUnit.test( "expandByScalar" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	a.expandByScalar( 0 );
  	assert.ok( a.getSize().equals( zero2 ), "Passed!" );
  
  	a.expandByScalar( 1 );
  	assert.ok( a.getSize().equals( one2.clone().multiplyScalar( 2 ) ), "Passed!" );
  	assert.ok( a.getCenter().equals( zero2 ), "Passed!" );
  });
  
  QUnit.test( "containsPoint" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  
  	assert.ok( a.containsPoint( zero2 ), "Passed!" );
  	assert.ok( ! a.containsPoint( one2 ), "Passed!" );
  
  	a.expandByScalar( 1 );
  	assert.ok( a.containsPoint( zero2 ), "Passed!" );
  	assert.ok( a.containsPoint( one2 ), "Passed!" );
  	assert.ok( a.containsPoint( one2.clone().negate() ), "Passed!" );
  });
  
  QUnit.test( "containsBox" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( zero2.clone(), one2.clone() );
  	var c = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.containsBox( a ), "Passed!" );
  	assert.ok( ! a.containsBox( b ), "Passed!" );
  	assert.ok( ! a.containsBox( c ), "Passed!" );
  
  	assert.ok( b.containsBox( a ), "Passed!" );
  	assert.ok( c.containsBox( a ), "Passed!" );
  	assert.ok( ! b.containsBox( c ), "Passed!" );
  });
  
  QUnit.test( "getParameter" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), one2.clone() );
  	var b = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.getParameter( new THREE.Vector2( 0, 0 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  	assert.ok( a.getParameter( new THREE.Vector2( 1, 1 ) ).equals( new THREE.Vector2( 1, 1 ) ), "Passed!" );
  
  	assert.ok( b.getParameter( new THREE.Vector2( -1, -1 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  	assert.ok( b.getParameter( new THREE.Vector2( 0, 0 ) ).equals( new THREE.Vector2( 0.5, 0.5 ) ), "Passed!" );
  	assert.ok( b.getParameter( new THREE.Vector2( 1, 1 ) ).equals( new THREE.Vector2( 1, 1 ) ), "Passed!" );
  });
  
  QUnit.test( "clampPoint" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.clampPoint( new THREE.Vector2( 0, 0 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  	assert.ok( a.clampPoint( new THREE.Vector2( 1, 1 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  	assert.ok( a.clampPoint( new THREE.Vector2( -1, -1 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  
  	assert.ok( b.clampPoint( new THREE.Vector2( 2, 2 ) ).equals( new THREE.Vector2( 1, 1 ) ), "Passed!" );
  	assert.ok( b.clampPoint( new THREE.Vector2( 1, 1 ) ).equals( new THREE.Vector2( 1, 1 ) ), "Passed!" );
  	assert.ok( b.clampPoint( new THREE.Vector2( 0, 0 ) ).equals( new THREE.Vector2( 0, 0 ) ), "Passed!" );
  	assert.ok( b.clampPoint( new THREE.Vector2( -1, -1 ) ).equals( new THREE.Vector2( -1, -1 ) ), "Passed!" );
  	assert.ok( b.clampPoint( new THREE.Vector2( -2, -2 ) ).equals( new THREE.Vector2( -1, -1 ) ), "Passed!" );
  });
  
  QUnit.test( "distanceToPoint" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.distanceToPoint( new THREE.Vector2( 0, 0 ) ) == 0, "Passed!" );
  	assert.ok( a.distanceToPoint( new THREE.Vector2( 1, 1 ) ) == Math.sqrt( 2 ), "Passed!" );
  	assert.ok( a.distanceToPoint( new THREE.Vector2( -1, -1 ) ) == Math.sqrt( 2 ), "Passed!" );
  
  	assert.ok( b.distanceToPoint( new THREE.Vector2( 2, 2 ) ) == Math.sqrt( 2 ), "Passed!" );
  	assert.ok( b.distanceToPoint( new THREE.Vector2( 1, 1 ) ) == 0, "Passed!" );
  	assert.ok( b.distanceToPoint( new THREE.Vector2( 0, 0 ) ) == 0, "Passed!" );
  	assert.ok( b.distanceToPoint( new THREE.Vector2( -1, -1 ) ) == 0, "Passed!" );
  	assert.ok( b.distanceToPoint( new THREE.Vector2( -2, -2 ) ) == Math.sqrt( 2 ), "Passed!" );
  });
  
  QUnit.test( "intersectsBox" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( zero2.clone(), one2.clone() );
  	var c = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.intersectsBox( a ), "Passed!" );
  	assert.ok( a.intersectsBox( b ), "Passed!" );
  	assert.ok( a.intersectsBox( c ), "Passed!" );
  
  	assert.ok( b.intersectsBox( a ), "Passed!" );
  	assert.ok( c.intersectsBox( a ), "Passed!" );
  	assert.ok( b.intersectsBox( c ), "Passed!" );
  
  	b.translate( new THREE.Vector2( 2, 2 ) );
  	assert.ok( ! a.intersectsBox( b ), "Passed!" );
  	assert.ok( ! b.intersectsBox( a ), "Passed!" );
  	assert.ok( ! b.intersectsBox( c ), "Passed!" );
  });
  
  QUnit.test( "intersect" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( zero2.clone(), one2.clone() );
  	var c = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.clone().intersect( a ).equals( a ), "Passed!" );
  	assert.ok( a.clone().intersect( b ).equals( a ), "Passed!" );
  	assert.ok( b.clone().intersect( b ).equals( b ), "Passed!" );
  	assert.ok( a.clone().intersect( c ).equals( a ), "Passed!" );
  	assert.ok( b.clone().intersect( c ).equals( b ), "Passed!" );
  	assert.ok( c.clone().intersect( c ).equals( c ), "Passed!" );
  });
  
  QUnit.test( "union" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( zero2.clone(), one2.clone() );
  	var c = new THREE.Box2( one2.clone().negate(), one2.clone() );
  
  	assert.ok( a.clone().union( a ).equals( a ), "Passed!" );
  	assert.ok( a.clone().union( b ).equals( b ), "Passed!" );
  	assert.ok( a.clone().union( c ).equals( c ), "Passed!" );
  	assert.ok( b.clone().union( c ).equals( c ), "Passed!" );
  });
  
  QUnit.test( "translate" , function( assert ) {
  	var a = new THREE.Box2( zero2.clone(), zero2.clone() );
  	var b = new THREE.Box2( zero2.clone(), one2.clone() );
  	var c = new THREE.Box2( one2.clone().negate(), one2.clone() );
  	var d = new THREE.Box2( one2.clone().negate(), zero2.clone() );
  
  	assert.ok( a.clone().translate( one2 ).equals( new THREE.Box2( one2, one2 ) ), "Passed!" );
  	assert.ok( a.clone().translate( one2 ).translate( one2.clone().negate() ).equals( a ), "Passed!" );
  	assert.ok( d.clone().translate( one2 ).equals( b ), "Passed!" );
  	assert.ok( b.clone().translate( one2.clone().negate() ).equals( d ), "Passed!" );
  });
  