-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.BoundingSphere
← Index ← Namespace Index
public struct BoundingSphere: IEquatable<BoundingSphere>
Defines a sphere.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
The center point of the sphere.
The radius of the sphere.
BoundingSphere(Vector3 center, float radius)
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 a BoundingSphere that can contain a specified list of points.
static BoundingSphere CreateInvalid()
static BoundingSphere CreateMerged(BoundingSphere original, BoundingSphere additional)
Creates a BoundingSphere that contains the two specified BoundingSphere instances.
Creates a BoundingSphere that contains the two specified BoundingSphere instances.
static void Include(ref BoundingSphere sphere, ref BoundingSphere otherSphere)
ContainmentType Contains(BoundingBox box)
Checks whether the current BoundingSphere contains the specified BoundingBox.
void Contains(ref BoundingBox box, out ContainmentType result)
Checks whether the current BoundingSphere contains the specified BoundingBox.
ContainmentType Contains(BoundingFrustum frustum)
Checks whether the current BoundingSphere contains the specified BoundingFrustum.
ContainmentType Contains(Vector3 point)
Checks whether the current BoundingSphere contains the specified point.
void Contains(ref Vector3 point, out ContainmentType result)
Checks whether the current BoundingSphere contains the specified point.
ContainmentType Contains(BoundingSphere sphere)
Checks whether the current BoundingSphere contains the specified BoundingSphere.
void Contains(ref BoundingSphere sphere, out ContainmentType result)
Checks whether the current BoundingSphere contains the specified BoundingSphere.
bool Equals(BoundingSphere other)
Determines whether the specified BoundingSphere is equal to the current BoundingSphere.
Determines whether the specified Object is equal to the BoundingSphere.
Gets the hash code for this instance.
BoundingSphere Include(BoundingSphere sphere)
bool IntersectRaySphere(Ray ray, out float tmin, out float tmax)
bool Intersects(BoundingBox box)
Checks whether the current BoundingSphere intersects with a specified BoundingBox.
void Intersects(ref BoundingBox box, out bool result)
Checks whether the current BoundingSphere intersects a BoundingBox.
bool Intersects(BoundingFrustum frustum)
Checks whether the current BoundingSphere intersects with a specified BoundingFrustum.
PlaneIntersectionType Intersects(Plane plane)
Checks whether the current BoundingSphere intersects with a specified Plane.
void Intersects(ref Plane plane, out PlaneIntersectionType result)
Checks whether the current BoundingSphere intersects a Plane.
Checks whether the current BoundingSphere intersects with a specified Ray.
void Intersects(ref Ray ray, out float? result)
Checks whether the current BoundingSphere intersects a Ray.
bool Intersects(BoundingSphere sphere)
Checks whether the current BoundingSphere intersects with a specified BoundingSphere.
void Intersects(ref BoundingSphere sphere, out bool result)
Checks whether the current BoundingSphere intersects another BoundingSphere.
Returns a String that represents the current BoundingSphere.
BoundingSphere Transform(Matrix matrix)
Translates and scales the BoundingSphere using a given Matrix.
void Transform(ref Matrix matrix, out BoundingSphere result)
Translates and scales the BoundingSphere using a given Matrix.
BoundingSphere Translate(ref Vector3 translation)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!