/// <summary>
 /// Tests for intersection between a <see cref="Sphere"/> and an <see cref="OrientedBox"/> .
 /// </summary>
 /// <param name="sphere">A <see cref="Sphere"/> instance.</param>
 /// <param name="box">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionType"/> value.</returns>
 public static IntersectionType Intersects(Sphere sphere, OrientedBox box)
 {
     // TODO: Implement this.
     throw new NotImplementedException();
 }
 public static AxisAlignedBox BoudningAABB(Sphere s)
 {
     Vector3F max = s.Center + s.Radius;
     Vector3F min = s.Center - s.Radius;
     return new AxisAlignedBox(min, max);
 }
 /// <summary>
 /// Tests for intersection between a <see cref="Ray"/> and a <see cref="Sphere"/>.
 /// </summary>
 /// <param name="ray">A <see cref="Ray"/> instance.</param>
 /// <param name="sphere">A <see cref="Sphere"/> instance.</param>
 /// <returns>An <see cref="IntersectionPair"/> instance containing the intersection information.</returns>
 public static IntersectionPair Intersects(Ray ray, Sphere sphere)
 {
     // TODO: Implement this.
     throw new NotImplementedException();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Sphere"/> class using values from another sphere instance.
 /// </summary>
 /// <param name="sphere">A <see cref="Sphere"/> instance to take values from.</param>
 public Sphere(Sphere sphere)
 {
     _center = sphere.Center;
     _radius = sphere.Radius;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sphere"/> class using values from another sphere instance.
 /// </summary>
 /// <param name="sphere">A <see cref="Sphere"/> instance to take values from.</param>
 public Sphere(Sphere sphere)
 {
     _center = sphere.Center;
     _radius = sphere.Radius;
 }
Esempio n. 6
0
 /// <summary>
 /// Tests for intersection between a <see cref="Sphere"/> and an <see cref="OrientedBox"/> .
 /// </summary>
 /// <param name="sphere">A <see cref="Sphere"/> instance.</param>
 /// <param name="box">An <see cref="OrientedBox"/> instance.</param>
 /// <returns>An <see cref="IntersectionType"/> value.</returns>
 public static IntersectionType Intersects(Sphere sphere, OrientedBox box)
 {
     // TODO: Implement this.
     throw new NotImplementedException();
 }
Esempio n. 7
0
 /// <summary>
 /// Tests for intersection between a <see cref="Ray"/> and a <see cref="Sphere"/>.
 /// </summary>
 /// <param name="ray">A <see cref="Ray"/> instance.</param>
 /// <param name="sphere">A <see cref="Sphere"/> instance.</param>
 /// <returns>An <see cref="IntersectionPair"/> instance containing the intersection information.</returns>
 public static IntersectionPair Intersects(Ray ray, Sphere sphere)
 {
     // TODO: Implement this.
     throw new NotImplementedException();
 }