Beispiel #1
0
 /// <summary>
 /// Gets whether or not a specified <see cref="Ray"/> intersects with this sphere.
 /// </summary>
 /// <param name="ray">The ray for testing.</param>
 /// <param name="result">Distance of ray intersection or <c>null</c> if there is no intersection as an output parameter.</param>
 public void Intersects(ref Ray ray, out float?result)
 {
     ray.Intersects(ref this, out result);
 }
Beispiel #2
0
 /// <summary>
 /// Gets whether or not a specified <see cref="Ray"/> intersects with this sphere.
 /// </summary>
 /// <param name="ray">The ray for testing.</param>
 /// <returns>Distance of ray intersection or <c>null</c> if there is no intersection.</returns>
 public float?Intersects(Ray ray)
 {
     return(ray.Intersects(this));
 }