BoundingSphere Structure (Microsoft.Xna.Framework)
Describes a sphere in 3D-space for bounding operations.
- C#
- VB
- F#
[DataContractAttribute] [DebuggerDisplayAttribute("{DebugDisplayString,nq}")] [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = -1, Size = -1)] public struct BoundingSphere : IEquatable<BoundingSphere>
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
The BoundingSphere type exposes the following members.
Platforms | Name | Description | |
---|---|---|---|
BoundingSphere | Constructs a bounding sphere with the specified center and radius. |
Platforms | Name | Description | |
---|---|---|---|
Contains(Vector3) | Test if a point is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingSphere, out ContainmentType) | Test if a sphere is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingSphere) | Test if a sphere is fully inside, outside, or just intersecting the sphere. | ||
Contains(Vector3, out ContainmentType) | Test if a point is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingFrustum) | Test if a frustum is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingBox, out ContainmentType) | Test if a bounding box is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingBox) | Test if a bounding box is fully inside, outside, or just intersecting the sphere. | ||
Contains(BoundingFrustum, out ContainmentType) | Test if a frustum is fully inside, outside, or just intersecting the sphere. | ||
CreateFromBoundingBox(BoundingBox) | Creates the smallest BoundingSphere that can contain a specified BoundingBox. | ||
CreateFromBoundingBox(BoundingBox, out BoundingSphere) | Creates the smallest BoundingSphere that can contain a specified BoundingBox. | ||
CreateFromFrustum | Creates the smallest BoundingSphere that can contain a specified BoundingFrustum. | ||
CreateFromPoints | Creates the smallest BoundingSphere that can contain a specified list of points in 3D-space. | ||
CreateMerged(BoundingSphere, BoundingSphere) | Creates the smallest BoundingSphere that can contain two spheres. | ||
CreateMerged(BoundingSphere, BoundingSphere, out BoundingSphere) | Creates the smallest BoundingSphere that can contain two spheres. | ||
Deconstruct | Deconstruction method for BoundingSphere. | ||
Equals(object) | Compares whether current instance is equal to specified System.Object. (Overrides ValueType.Equals().) | ||
Equals(BoundingSphere) | Compares whether current instance is equal to specified BoundingSphere. (Implements IEquatable<T>.Equals().) | ||
GetHashCode | Gets the hash code of this BoundingSphere. (Overrides ValueType.GetHashCode().) | ||
Intersects(BoundingBox, out Boolean) | Gets whether or not a specified BoundingBox intersects with this sphere. | ||
Intersects(BoundingSphere) | Gets whether or not the other BoundingSphere intersects with this sphere. | ||
Intersects(BoundingSphere, out Boolean) | Gets whether or not the other BoundingSphere intersects with this sphere. | ||
Intersects(Plane) | Gets whether or not a specified Plane intersects with this sphere. | ||
Intersects(Plane, out PlaneIntersectionType) | Gets whether or not a specified Plane intersects with this sphere. | ||
Intersects(Ray) | Gets whether or not a specified Ray intersects with this sphere. | ||
Intersects(Ray, out Nullable`1) | Gets whether or not a specified Ray intersects with this sphere. | ||
Intersects(BoundingBox) | Gets whether or not a specified BoundingBox intersects with this sphere. | ||
ToString | Returns a System.String representation of this BoundingSphere in the format: {Center:[Center] Radius:[Radius]} (Overrides ValueType.ToString().) | ||
Transform(Matrix) | Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix. | ||
Transform(Matrix, out BoundingSphere) | Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix. |
Platforms | Name | Description | |
---|---|---|---|
Equality | Compares whether two BoundingSphere instances are equal. | ||
Inequality | Compares whether two BoundingSphere instances are not equal. |
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web