 		
 		private function centerChangedHandler(center : Vector4, property : String) : void
 		{
-			throw new Error("This property is read-only.");
+			throw new Error('This property is read-only.');
 		}
 
 		/**

package aerys.minko.type.bounding
{
	import aerys.minko.ns.minko_math;
	import aerys.minko.type.math.Vector4;



		{
			return new BoundingSphere(_center, radius);
		}
		
		public function testRay(ray			: Ray,
								transform 	: Matrix4x4	= null,
								maxDistance	: Number	= Number.POSITIVE_INFINITY) : Number
		{
			var localOrigin		: Vector4	= ray.origin;
			var localDirection 	: Vector4 	= ray.direction;
			
			if (transform)
			{
				localOrigin = transform.transformVector(ray.origin, TMP_VECTOR4_1);
				
				localDirection = transform.deltaTransformVector(ray.direction, TMP_VECTOR4_2);
				localDirection.normalize();
			}
			
			if (localOrigin.length > maxDistance)
				return -1.0;
			
			var a 		: Number = localDirection.lengthSquared;
			var b 		: Number = 2 * Vector4.dotProduct(localDirection, localOrigin);
			var c 		: Number = localOrigin.lengthSquared - (_radius * _radius);
			var disc 	: Number = b * b - 4 * a * c;
			
			if (disc < 0)
				return -1.0;
			
			var distSqrt	: Number = Math.sqrt(disc);
			var q 			: Number = 0.;
			
			if (b < 0)
				q = (-b - distSqrt) * 0.5;
			else
				q = (-b + distSqrt) * 0.5;
			
			var t0 : Number = q / a;
			var t1 : Number = c / q;
			
			if (t0 > t1)
			{
				var tmp : Number = t0;
				
				t0 = t1;
				t1 = tmp;
			}
			
			if (t1 < 0)
				return -1.0;
			
			return t0 < 0 ? t1 : t0;
		}
	}
}