Nebula
|
Describes a sphere in 3D-space for bounding operations.
Inherits IEquatable< BoundingSphere >.
Public Member Functions | |
BoundingSphere (Vector3 center, float radius) | |
Constructs a bounding sphere with the specified center and radius. | |
ContainmentType | Contains (BoundingBox box) |
Test if a bounding box is fully inside, outside, or just intersecting the sphere. | |
void | Contains (ref BoundingBox box, out ContainmentType result) |
Test if a bounding box is fully inside, outside, or just intersecting the sphere. | |
ContainmentType | Contains (BoundingFrustum frustum) |
Test if a frustum is fully inside, outside, or just intersecting the sphere. | |
void | Contains (ref BoundingFrustum frustum, out ContainmentType result) |
Test if a frustum is fully inside, outside, or just intersecting the sphere. | |
ContainmentType | Contains (BoundingSphere sphere) |
Test if a sphere is fully inside, outside, or just intersecting the sphere. | |
void | Contains (ref BoundingSphere sphere, out ContainmentType result) |
Test if a sphere is fully inside, outside, or just intersecting the sphere. | |
ContainmentType | Contains (Vector3 point) |
Test if a point is fully inside, outside, or just intersecting the sphere. | |
void | Contains (ref Vector3 point, out ContainmentType result) |
Test if a point is fully inside, outside, or just intersecting the sphere. | |
bool | Equals (BoundingSphere other) |
Compares whether current instance is equal to specified BoundingSphere. | |
override bool | Equals (object obj) |
Compares whether current instance is equal to specified Object. | |
override int | GetHashCode () |
Gets the hash code of this BoundingSphere. | |
bool | Intersects (BoundingBox box) |
Gets whether or not a specified BoundingBox intersects with this sphere. | |
void | Intersects (ref BoundingBox box, out bool result) |
Gets whether or not a specified BoundingBox intersects with this sphere. | |
bool | Intersects (BoundingSphere sphere) |
Gets whether or not the other BoundingSphere intersects with this sphere. | |
void | Intersects (ref BoundingSphere sphere, out bool result) |
Gets whether or not the other BoundingSphere intersects with this sphere. | |
PlaneIntersectionType | Intersects (Plane plane) |
Gets whether or not a specified Plane intersects with this sphere. | |
void | Intersects (ref Plane plane, out PlaneIntersectionType result) |
Gets whether or not a specified Plane intersects with this sphere. | |
float? | Intersects (Ray ray) |
Gets whether or not a specified Ray intersects with this sphere. | |
void | Intersects (ref Ray ray, out float? result) |
Gets whether or not a specified Ray intersects with this sphere. | |
override string | ToString () |
Returns a String representation of this BoundingSphere in the format: {Center:[Center] Radius:[Radius]}. | |
BoundingSphere | Transform (Matrix matrix) |
Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix. | |
void | Transform (ref Matrix matrix, out BoundingSphere result) |
Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix. | |
void | Deconstruct (out Vector3 center, out float radius) |
Deconstruction method for BoundingSphere. | |
Static Public Member Functions | |
static BoundingSphere | CreateFromBoundingBox (BoundingBox box) |
Creates the smallest BoundingSphere that can contain a specified BoundingBox. | |
static void | CreateFromBoundingBox (ref BoundingBox box, out BoundingSphere result) |
Creates the smallest BoundingSphere that can contain a specified BoundingBox. | |
static BoundingSphere | CreateFromFrustum (BoundingFrustum frustum) |
Creates the smallest BoundingSphere that can contain a specified BoundingFrustum. | |
static BoundingSphere | CreateFromPoints (IEnumerable< Vector3 > points) |
Creates the smallest BoundingSphere that can contain a specified list of points in 3D-space. | |
static BoundingSphere | CreateMerged (BoundingSphere original, BoundingSphere additional) |
Creates the smallest BoundingSphere that can contain two spheres. | |
static void | CreateMerged (ref BoundingSphere original, ref BoundingSphere additional, out BoundingSphere result) |
Creates the smallest BoundingSphere that can contain two spheres. | |
static bool | operator== (BoundingSphere a, BoundingSphere b) |
Compares whether two BoundingSphere instances are equal. | |
static bool | operator!= (BoundingSphere a, BoundingSphere b) |
Compares whether two BoundingSphere instances are not equal. | |
Public Attributes | |
Vector3 | Center |
The sphere center. | |
float | Radius |
The sphere radius. | |
Properties | |
string | DebugDisplayString [get] |
|
inline |
Constructs a bounding sphere with the specified center and radius.
center | The sphere center. |
radius | The sphere radius. |
|
inline |
Test if a bounding box is fully inside, outside, or just intersecting the sphere.
box | The box for testing. |
|
inline |
Test if a frustum is fully inside, outside, or just intersecting the sphere.
frustum | The frustum for testing. |
|
inline |
Test if a sphere is fully inside, outside, or just intersecting the sphere.
sphere | The other sphere for testing. |
|
inline |
Test if a bounding box is fully inside, outside, or just intersecting the sphere.
box | The box for testing. |
result | The containment type as an output parameter. |
|
inline |
Test if a frustum is fully inside, outside, or just intersecting the sphere.
frustum | The frustum for testing. |
result | The containment type as an output parameter. |
|
inline |
Test if a sphere is fully inside, outside, or just intersecting the sphere.
sphere | The other sphere for testing. |
result | The containment type as an output parameter. |
|
inline |
Test if a point is fully inside, outside, or just intersecting the sphere.
point | The vector in 3D-space for testing. |
result | The containment type as an output parameter. |
|
inline |
Test if a point is fully inside, outside, or just intersecting the sphere.
point | The vector in 3D-space for testing. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain a specified BoundingBox.
box | The box to create the sphere from. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain a specified BoundingBox.
box | The box to create the sphere from. |
result | The new BoundingSphere as an output parameter. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain a specified BoundingFrustum.
frustum | The frustum to create the sphere from. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain a specified list of points in 3D-space.
points | List of point to create the sphere from. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain two spheres.
original | First sphere. |
additional | Second sphere. |
|
inlinestatic |
Creates the smallest BoundingSphere that can contain two spheres.
original | First sphere. |
additional | Second sphere. |
result | The new BoundingSphere as an output parameter. |
|
inline |
Deconstruction method for BoundingSphere.
center | |
radius |
|
inline |
Compares whether current instance is equal to specified BoundingSphere.
other | The BoundingSphere to compare. |
true
if the instances are equal; false
otherwise.
|
inline |
Compares whether current instance is equal to specified Object.
obj | The Object to compare. |
true
if the instances are equal; false
otherwise.
|
inline |
Gets the hash code of this BoundingSphere.
|
inline |
Gets whether or not a specified BoundingBox intersects with this sphere.
box | The box for testing. |
true
if BoundingBox intersects with this sphere; false
otherwise.
|
inline |
Gets whether or not the other BoundingSphere intersects with this sphere.
sphere | The other sphere for testing. |
true
if other BoundingSphere intersects with this sphere; false
otherwise.
|
inline |
Gets whether or not a specified Plane intersects with this sphere.
plane | The plane for testing. |
|
inline |
Gets whether or not a specified Ray intersects with this sphere.
ray | The ray for testing. |
null
if there is no intersection.
|
inline |
Gets whether or not a specified BoundingBox intersects with this sphere.
box | The box for testing. |
result | true if BoundingBox intersects with this sphere; false otherwise. As an output parameter. |
|
inline |
Gets whether or not the other BoundingSphere intersects with this sphere.
sphere | The other sphere for testing. |
result | true if other BoundingSphere intersects with this sphere; false otherwise. As an output parameter. |
|
inline |
Gets whether or not a specified Plane intersects with this sphere.
plane | The plane for testing. |
result | Type of intersection as an output parameter. |
|
inline |
Gets whether or not a specified Ray intersects with this sphere.
ray | The ray for testing. |
result | Distance of ray intersection or null if there is no intersection as an output parameter. |
|
inlinestatic |
Compares whether two BoundingSphere instances are not equal.
a | BoundingSphere instance on the left of the not equal sign. |
b | BoundingSphere instance on the right of the not equal sign. |
true
if the instances are not equal; false
otherwise.
|
inlinestatic |
Compares whether two BoundingSphere instances are equal.
a | BoundingSphere instance on the left of the equal sign. |
b | BoundingSphere instance on the right of the equal sign. |
true
if the instances are equal; false
otherwise.
|
inline |
Returns a String representation of this BoundingSphere in the format: {Center:[Center] Radius:[Radius]}.
|
inline |
Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix.
matrix | The transformation Matrix. |
|
inline |
Creates a new BoundingSphere that contains a transformation of translation and scale from this sphere by the specified Matrix.
matrix | The transformation Matrix. |
result | Transformed BoundingSphere as an output parameter. |
Vector3 Mathf.BoundingSphere.Center |
The sphere center.
float Mathf.BoundingSphere.Radius |
The sphere radius.
|
getpackage |