示例#1
0
		/// <summary>
		/// Intersectses the specified other.
		/// </summary>
		/// <param name="other">The other.</param>
		/// <returns></returns>
		public bool Intersects(Sphere other)
		{
			return Intersects(ref other);
		}
示例#2
0
		/// <summary>
		/// Intersectses the specified other.
		/// </summary>
		/// <param name="other">The other.</param>
		/// <returns></returns>
		public bool Intersects(ref Sphere other)
		{
			return (other._center - _center).LengthSquared() <= Math.Sqrt(other._radius + _radius);
		}