Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.BoundingSphere

Morten Aune Lyrstad edited this page Apr 16, 2022 · 50 revisions

IndexNamespace Index

BoundingSphere Struct

public struct BoundingSphere: IEquatable<BoundingSphere>

Defines a sphere.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Vector3 Center

The center point of the sphere.

float Radius

The radius of the sphere.

Constructors

BoundingSphere(Vector3 center, float radius)

Methods

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.

static void CreateMerged(ref BoundingSphere original, ref BoundingSphere additional, out BoundingSphere result)

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.

bool Equals(object obj)

Determines whether the specified Object is equal to the BoundingSphere.

BoundingBox GetBoundingBox()

int GetHashCode()

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.

float? Intersects(Ray ray)

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.

string ToString()

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)

Clone this wiki locally