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

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

Methods

Member Description
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&nbsp;CreateFromPoints(IEnumerable<Vector3>&nbsp;points) Creates a BoundingSphere that can contain a specified list of points.
static BoundingSphere&nbsp;CreateFromFrustum(BoundingFrustum&nbsp;frustum) Creates the smallest BoundingSphere that can contain a specified BoundingFrustum.
bool&nbsp;Intersects(BoundingBox&nbsp;box) Checks whether the current BoundingSphere intersects with a specified BoundingBox.
void&nbsp;Intersects(ref&nbsp;BoundingBox&nbsp;box,&nbsp;ref&nbsp;bool&nbsp;result) Checks whether the current BoundingSphere intersects a BoundingBox.
bool&nbsp;Intersects(BoundingFrustum&nbsp;frustum) Checks whether the current BoundingSphere intersects with a specified BoundingFrustum.
PlaneIntersectionType&nbsp;Intersects(Plane&nbsp;plane) Checks whether the current BoundingSphere intersects with a specified Plane.
void&nbsp;Intersects(ref&nbsp;Plane&nbsp;plane,&nbsp;ref&nbsp;PlaneIntersectionType&nbsp;result) Checks whether the current BoundingSphere intersects a Plane.
Nullable<float>&nbsp;Intersects(Ray&nbsp;ray) Checks whether the current BoundingSphere intersects with a specified Ray.
void&nbsp;Intersects(ref&nbsp;Ray&nbsp;ray,&nbsp;ref&nbsp;Nullable<float>&nbsp;result) Checks whether the current BoundingSphere intersects a Ray.
bool&nbsp;Intersects(BoundingSphere&nbsp;sphere) Checks whether the current BoundingSphere intersects with a specified BoundingSphere.
void&nbsp;Intersects(ref&nbsp;BoundingSphere&nbsp;sphere,&nbsp;ref&nbsp;bool&nbsp;result) Checks whether the current BoundingSphere intersects another BoundingSphere.
ContainmentType&nbsp;Contains(BoundingBox&nbsp;box) Checks whether the current BoundingSphere contains the specified BoundingBox.
void&nbsp;Contains(ref&nbsp;BoundingBox&nbsp;box,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Checks whether the current BoundingSphere contains the specified BoundingBox.
ContainmentType&nbsp;Contains(BoundingFrustum&nbsp;frustum) Checks whether the current BoundingSphere contains the specified BoundingFrustum.
ContainmentType&nbsp;Contains(Vector3&nbsp;point) Checks whether the current BoundingSphere contains the specified point.
void&nbsp;Contains(ref&nbsp;Vector3&nbsp;point,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Checks whether the current BoundingSphere contains the specified point.
ContainmentType&nbsp;Contains(BoundingSphere&nbsp;sphere) Checks whether the current BoundingSphere contains the specified BoundingSphere.
void&nbsp;Contains(ref&nbsp;BoundingSphere&nbsp;sphere,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Checks whether the current BoundingSphere contains the specified BoundingSphere.
BoundingSphere&nbsp;Transform(Matrix&nbsp;matrix) Translates and scales the BoundingSphere using a given Matrix.
void&nbsp;Transform(ref&nbsp;Matrix&nbsp;matrix,&nbsp;ref&nbsp;BoundingSphere&nbsp;result) Translates and scales the BoundingSphere using a given Matrix.
BoundingSphere&nbsp;Translate(ref&nbsp;Vector3&nbsp;translation)
bool&nbsp;IntersectRaySphere(Ray&nbsp;ray,&nbsp;ref&nbsp;float&nbsp;tmin,&nbsp;ref&nbsp;float&nbsp;tmax)
BoundingSphere&nbsp;Include(BoundingSphere&nbsp;sphere)
static void&nbsp;Include(ref&nbsp;BoundingSphere&nbsp;sphere,&nbsp;ref&nbsp;BoundingSphere&nbsp;otherSphere)
static BoundingSphere&nbsp;CreateInvalid()

Clone this wiki locally