Nebula
Loading...
Searching...
No Matches
Mathf.BoundingBox Struct Reference

Inherits IEquatable< BoundingBox >.

Public Member Functions

 BoundingBox (Vector3 min, Vector3 max)
 
 BoundingBox (float minx, float miny, float minz, float maxx, float maxy, float maxz)
 
ContainmentType Contains (BoundingBox box)
 
void Contains (ref BoundingBox box, out ContainmentType result)
 
ContainmentType Contains (BoundingFrustum frustum)
 
ContainmentType Contains (BoundingSphere sphere)
 
void Contains (ref BoundingSphere sphere, out ContainmentType result)
 
ContainmentType Contains (Vector3 point)
 
void Contains (ref Vector3 point, out ContainmentType result)
 
bool Equals (BoundingBox other)
 
override bool Equals (object obj)
 
Vector3[] GetCorners ()
 
void GetCorners (Vector3[] corners)
 
override int GetHashCode ()
 
bool Intersects (BoundingBox box)
 
void Intersects (ref BoundingBox box, out bool result)
 
bool Intersects (BoundingFrustum frustum)
 
bool Intersects (BoundingSphere sphere)
 
void Intersects (ref BoundingSphere sphere, out bool result)
 
PlaneIntersectionType Intersects (Plane plane)
 
void Intersects (ref Plane plane, out PlaneIntersectionType result)
 
Nullable< float > Intersects (Ray ray)
 
void Intersects (ref Ray ray, out Nullable< float > result)
 
override string ToString ()
 
void Deconstruct (out Vector3 min, out Vector3 max)
 Deconstruction method for BoundingBox.
 

Static Public Member Functions

static BoundingBox CreateFromPoints (IEnumerable< Vector3 > points)
 Create a bounding box from the given list of points.
 
static BoundingBox CreateFromSphere (BoundingSphere sphere)
 
static void CreateFromSphere (ref BoundingSphere sphere, out BoundingBox result)
 
static BoundingBox CreateMerged (BoundingBox original, BoundingBox additional)
 
static void CreateMerged (ref BoundingBox original, ref BoundingBox additional, out BoundingBox result)
 
static bool operator== (BoundingBox a, BoundingBox b)
 
static bool operator!= (BoundingBox a, BoundingBox b)
 

Public Attributes

Vector3 Min
 
Vector3 Max
 

Static Public Attributes

const int CornerCount = 8
 

Properties

string DebugDisplayString [get]
 

Static Private Attributes

static readonly Vector3 MaxVector3 = new Vector3(float.MaxValue)
 
static readonly Vector3 MinVector3 = new Vector3(float.MinValue)
 

Constructor & Destructor Documentation

◆ BoundingBox() [1/2]

Mathf.BoundingBox.BoundingBox ( Vector3 min,
Vector3 max )
inline

◆ BoundingBox() [2/2]

Mathf.BoundingBox.BoundingBox ( float minx,
float miny,
float minz,
float maxx,
float maxy,
float maxz )
inline

Member Function Documentation

◆ Contains() [1/7]

ContainmentType Mathf.BoundingBox.Contains ( BoundingBox box)
inline

◆ Contains() [2/7]

ContainmentType Mathf.BoundingBox.Contains ( BoundingFrustum frustum)
inline

◆ Contains() [3/7]

ContainmentType Mathf.BoundingBox.Contains ( BoundingSphere sphere)
inline

◆ Contains() [4/7]

void Mathf.BoundingBox.Contains ( ref BoundingBox box,
out ContainmentType result )
inline

◆ Contains() [5/7]

void Mathf.BoundingBox.Contains ( ref BoundingSphere sphere,
out ContainmentType result )
inline

◆ Contains() [6/7]

void Mathf.BoundingBox.Contains ( ref Vector3 point,
out ContainmentType result )
inline

◆ Contains() [7/7]

ContainmentType Mathf.BoundingBox.Contains ( Vector3 point)
inline

◆ CreateFromPoints()

static BoundingBox Mathf.BoundingBox.CreateFromPoints ( IEnumerable< Vector3 > points)
inlinestatic

Create a bounding box from the given list of points.

Parameters
pointsThe list of Vector3 instances defining the point cloud to bound
Returns
A bounding box that encapsulates the given point cloud.
Exceptions
System.ArgumentExceptionThrown if the given list has no points.

◆ CreateFromSphere() [1/2]

static BoundingBox Mathf.BoundingBox.CreateFromSphere ( BoundingSphere sphere)
inlinestatic

◆ CreateFromSphere() [2/2]

static void Mathf.BoundingBox.CreateFromSphere ( ref BoundingSphere sphere,
out BoundingBox result )
inlinestatic

◆ CreateMerged() [1/2]

static BoundingBox Mathf.BoundingBox.CreateMerged ( BoundingBox original,
BoundingBox additional )
inlinestatic

◆ CreateMerged() [2/2]

static void Mathf.BoundingBox.CreateMerged ( ref BoundingBox original,
ref BoundingBox additional,
out BoundingBox result )
inlinestatic

◆ Deconstruct()

void Mathf.BoundingBox.Deconstruct ( out Vector3 min,
out Vector3 max )
inline

Deconstruction method for BoundingBox.

Parameters
min
max

◆ Equals() [1/2]

bool Mathf.BoundingBox.Equals ( BoundingBox other)
inline

◆ Equals() [2/2]

override bool Mathf.BoundingBox.Equals ( object obj)
inline

◆ GetCorners() [1/2]

Vector3[] Mathf.BoundingBox.GetCorners ( )
inline

◆ GetCorners() [2/2]

void Mathf.BoundingBox.GetCorners ( Vector3[] corners)
inline

◆ GetHashCode()

override int Mathf.BoundingBox.GetHashCode ( )
inline

◆ Intersects() [1/9]

bool Mathf.BoundingBox.Intersects ( BoundingBox box)
inline

◆ Intersects() [2/9]

bool Mathf.BoundingBox.Intersects ( BoundingFrustum frustum)
inline

◆ Intersects() [3/9]

bool Mathf.BoundingBox.Intersects ( BoundingSphere sphere)
inline

◆ Intersects() [4/9]

PlaneIntersectionType Mathf.BoundingBox.Intersects ( Plane plane)
inline

◆ Intersects() [5/9]

Nullable< float > Mathf.BoundingBox.Intersects ( Ray ray)
inline

◆ Intersects() [6/9]

void Mathf.BoundingBox.Intersects ( ref BoundingBox box,
out bool result )
inline

◆ Intersects() [7/9]

void Mathf.BoundingBox.Intersects ( ref BoundingSphere sphere,
out bool result )
inline

◆ Intersects() [8/9]

void Mathf.BoundingBox.Intersects ( ref Plane plane,
out PlaneIntersectionType result )
inline

◆ Intersects() [9/9]

void Mathf.BoundingBox.Intersects ( ref Ray ray,
out Nullable< float > result )
inline

◆ operator!=()

static bool Mathf.BoundingBox.operator!= ( BoundingBox a,
BoundingBox b )
inlinestatic

◆ operator==()

static bool Mathf.BoundingBox.operator== ( BoundingBox a,
BoundingBox b )
inlinestatic

◆ ToString()

override string Mathf.BoundingBox.ToString ( )
inline

Member Data Documentation

◆ CornerCount

const int Mathf.BoundingBox.CornerCount = 8
static

◆ Max

Vector3 Mathf.BoundingBox.Max

◆ MaxVector3

readonly Vector3 Mathf.BoundingBox.MaxVector3 = new Vector3(float.MaxValue)
staticprivate

◆ Min

Vector3 Mathf.BoundingBox.Min

◆ MinVector3

readonly Vector3 Mathf.BoundingBox.MinVector3 = new Vector3(float.MinValue)
staticprivate

Property Documentation

◆ DebugDisplayString

string Mathf.BoundingBox.DebugDisplayString
getpackage

The documentation for this struct was generated from the following file: