Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.BoundingSphere

Malware edited this page Dec 21, 2018 · 51 revisions

Index

BoundingSphere Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

Defines a sphere.

Fields

_Vector3 Center_ The center point of the sphere.
_float Radius_ The radius of the sphere.
### Methods
_bool Equals(BoundingSphere other)_ Determines whether the specified BoundingSphere is equal to the current BoundingSphere.
_bool Equals(Object obj)_ Determines whether the specified Object is equal to the BoundingSphere.
_int GetHashCode()_ Gets the hash code for this instance.
_string ToString()_ Returns a String that represents the current BoundingSphere.
static _BoundingSphere CreateMerged(BoundingSphere original, BoundingSphere additional)_ Creates a BoundingSphere that contains the two specified BoundingSphere instances.
static _void CreateMerged(ref BoundingSphere original, ref BoundingSphere additional, ref BoundingSphere result)_ Creates a BoundingSphere that contains the two specified BoundingSphere instances.
static _BoundingSphere CreateFromBoundingBox(BoundingBox box)_ Creates the smallest BoundingSphere that can contain a specified BoundingBox.
static _void CreateFromBoundingBox(ref BoundingBox box, ref BoundingSphere result)_ Creates the smallest BoundingSphere that can contain a specified BoundingBox.
static _BoundingSphere CreateFromPoints(IEnumerable points)_ Creates a BoundingSphere that can contain a specified list of points.
static _BoundingSphere CreateFromFrustum(BoundingFrustum frustum)_ Creates the smallest BoundingSphere that can contain a specified BoundingFrustum.
_bool Intersects(BoundingBox box)_ Checks whether the current BoundingSphere intersects with a specified BoundingBox.
_void Intersects(ref BoundingBox box, ref 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, ref PlaneIntersectionType result)_ Checks whether the current BoundingSphere intersects a Plane.
_Nullable Intersects(Ray ray)_ Checks whether the current BoundingSphere intersects with a specified Ray.
_void Intersects(ref Ray ray, ref Nullable 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, ref bool result)_ Checks whether the current BoundingSphere intersects another BoundingSphere.
_ContainmentType Contains(BoundingBox box)_ Checks whether the current BoundingSphere contains the specified BoundingBox.
_void Contains(ref BoundingBox box, ref 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, ref 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, ref ContainmentType result)_ Checks whether the current BoundingSphere contains the specified BoundingSphere.
_BoundingSphere Transform(Matrix matrix)_ Translates and scales the BoundingSphere using a given Matrix.
_void Transform(ref Matrix matrix, ref BoundingSphere result)_ Translates and scales the BoundingSphere using a given Matrix.
_BoundingSphere Translate(ref Vector3 translation)_
_bool IntersectRaySphere(Ray ray, ref float tmin, ref float tmax)_
_BoundingSphere Include(BoundingSphere sphere)_
static _void Include(ref BoundingSphere sphere, ref BoundingSphere otherSphere)_
static _BoundingSphere CreateInvalid()_

Clone this wiki locally