Assembly: VRage.Math.dll

public struct BoundingSphereD: IEquatable<BoundingSphereD>

Defines a sphere.

Fields

Member Description
Center The center point of the sphere.
Radius The radius of the sphere.

Constructors

Member Description
BoundingSphereD(Vector3D, double)

Methods

Member Description
static CreateFromBoundingBox(BoundingBoxD) Creates the smallest BoundingSphereD that can contain a specified BoundingBoxD.
static CreateFromBoundingBox(ref BoundingBoxD, out BoundingSphereD) Creates the smallest BoundingSphereD that can contain a specified BoundingBoxD.
static CreateFromFrustum(BoundingFrustumD) Creates the smallest BoundingSphereD that can contain a specified BoundingFrustum.
static CreateFromPoints(Vector3D[]) Creates a BoundingSphereD that can contain a specified list of points.
static CreateInvalid()
static CreateMerged(BoundingSphereD, BoundingSphereD) Creates a BoundingSphereD that contains the two specified BoundingSphereD instances.
static CreateMerged(ref BoundingSphereD, ref BoundingSphereD, out BoundingSphereD) Creates a BoundingSphereD that contains the two specified BoundingSphereD instances.
static Include(ref BoundingSphereD, ref BoundingSphereD)
Contains(BoundingBoxD) Checks whether the current BoundingSphereD contains the specified BoundingBoxD.
Contains(ref BoundingBoxD, out ContainmentType) Checks whether the current BoundingSphereD contains the specified BoundingBoxD.
Contains(MyOrientedBoundingBoxD) Checks whether the current BoundingSphereD contains the specified MyOrientedBoundingBoxD.
Contains(ref MyOrientedBoundingBoxD, out ContainmentType) Checks whether the current BoundingSphereD contains the specified MyOrientedBoundingBoxD.
Contains(BoundingFrustumD) Checks whether the current BoundingSphereD contains the specified BoundingFrustum.
Contains(Vector3D) Checks whether the current BoundingSphereD contains the specified point.
Contains(ref Vector3D, out ContainmentType) Checks whether the current BoundingSphereD contains the specified point.
Contains(BoundingSphereD) Checks whether the current BoundingSphereD contains the specified BoundingSphereD.
Contains(ref BoundingSphereD, out ContainmentType) Checks whether the current BoundingSphereD contains the specified BoundingSphereD.
Equals(BoundingSphereD) Determines whether the specified BoundingSphereD is equal to the current BoundingSphereD.
Equals(object) Determines whether the specified Object is equal to the BoundingSphereD.
GetBoundingBox()
GetHashCode() Gets the hash code for this instance.
Include(BoundingSphereD)
IntersectRaySphere(RayD, out double, out double) NOTE: This function doesn't calculate the normal because it's easily derived for a sphere (p - center).
Intersects(BoundingBoxD) Checks whether the current BoundingSphereD intersects with a specified BoundingBoxD.
Intersects(ref BoundingBoxD, out bool) Checks whether the current BoundingSphereD intersects a BoundingBoxD.
Intersects(RayD)
Intersects(BoundingFrustumD) Checks whether the current BoundingSphereD intersects with a specified BoundingFrustum.
Intersects(BoundingSphereD) Checks whether the current BoundingSphereD intersects with a specified BoundingSphereD.
Intersects(ref BoundingSphereD, out bool) Checks whether the current BoundingSphereD intersects another BoundingSphereD.
RandomToUniformPointInSphere(double, double, double) If ranX, ranY, ranZ are uniformly distributed across ranges <0,1>, Resulting point will be uniformly distributed inside sphere
RandomToUniformPointInSphereWithInnerCutout(double, double, double, double) Similar to RandomToUniformPointInSphere(...) but excludes points within distance of cutoutRadius from center. (Results are randomly distributed in the shape that remains from sphere that had another sphere cut out from center. )
RandomToUniformPointOnSphere(double, double)
ToString() Returns a String that represents the current BoundingSphereD.
Transform(MatrixD) Translates and scales the BoundingSphereD using a given Matrix.
Transform(ref MatrixD, out BoundingSphereD) Translates and scales the BoundingSphereD using a given Matrix.

Implements: