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

Inherits IEquatable.

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]

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

◆ BoundingBox() [2/2]

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

Member Function Documentation

◆ Contains() [1/7]

ContainmentType Nebula.BoundingBox.Contains ( BoundingBox box)
inline

◆ Contains() [2/7]

ContainmentType Nebula.BoundingBox.Contains ( BoundingFrustum frustum)
inline

◆ Contains() [3/7]

ContainmentType Nebula.BoundingBox.Contains ( BoundingSphere sphere)
inline

◆ Contains() [4/7]

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

◆ Contains() [5/7]

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

◆ Contains() [6/7]

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

◆ Contains() [7/7]

ContainmentType Nebula.BoundingBox.Contains ( Vector3 point)
inline

◆ CreateFromPoints()

BoundingBox Nebula.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]

BoundingBox Nebula.BoundingBox.CreateFromSphere ( BoundingSphere sphere)
inlinestatic

◆ CreateFromSphere() [2/2]

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

◆ CreateMerged() [1/2]

BoundingBox Nebula.BoundingBox.CreateMerged ( BoundingBox original,
BoundingBox additional )
inlinestatic

◆ CreateMerged() [2/2]

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

◆ Deconstruct()

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

Deconstruction method for BoundingBox.

Parameters
min
max

◆ Equals() [1/2]

bool Nebula.BoundingBox.Equals ( BoundingBox other)
inline

◆ Equals() [2/2]

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

◆ GetCorners() [1/2]

Vector3[] Nebula.BoundingBox.GetCorners ( )
inline

◆ GetCorners() [2/2]

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

◆ GetHashCode()

override int Nebula.BoundingBox.GetHashCode ( )
inline

◆ Intersects() [1/9]

bool Nebula.BoundingBox.Intersects ( BoundingBox box)
inline

◆ Intersects() [2/9]

bool Nebula.BoundingBox.Intersects ( BoundingFrustum frustum)
inline

◆ Intersects() [3/9]

bool Nebula.BoundingBox.Intersects ( BoundingSphere sphere)
inline

◆ Intersects() [4/9]

PlaneIntersectionType Nebula.BoundingBox.Intersects ( Plane plane)
inline

◆ Intersects() [5/9]

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

◆ Intersects() [6/9]

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

◆ Intersects() [7/9]

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

◆ Intersects() [8/9]

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

◆ Intersects() [9/9]

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

◆ operator!=()

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

◆ operator==()

bool Nebula.BoundingBox.operator== ( BoundingBox a,
BoundingBox b )
inlinestatic

◆ ToString()

override string Nebula.BoundingBox.ToString ( )
inline

Member Data Documentation

◆ CornerCount

const int Nebula.BoundingBox.CornerCount = 8
static

◆ Max

Vector3 Nebula.BoundingBox.Max

◆ MaxVector3

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

◆ Min

Vector3 Nebula.BoundingBox.Min

◆ MinVector3

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

Property Documentation

◆ DebugDisplayString

string Nebula.BoundingBox.DebugDisplayString
getpackage

The documentation for this struct was generated from the following file:
  • /github/workspace/code/addons/nsharp/NebulaEngine/mathf/BoundingBox.cs