DOTS Geometry
 
Loading...
Searching...
No Matches
BoundsExtension Class Reference

Static Public Member Functions

static float Area (this Bounds bounds)
 
static Bounds CombineWith (this Bounds bounds, Bounds other)
 Returns the bounds that enclose both these bounds and the other ones.
 
static bool Contains (this Bounds bounds, Bounds other)
 Returns true if the other bounds are completely contained in the these bounds.
 
static FixedList128Bytes< float3 > GetCornerPoints (this Bounds bounds)
 
static bool IsDegenerate (ref this Bounds bounds)
 
static bool Overlaps (this Bounds bounds, Bounds other)
 
static float OverlapVolume (this Bounds bounds0, Bounds bounds1)
 
static Bounds[] Subdivide (this Bounds bounds)
 Divides the boundary into eight smaller boundaries (like in an octree). The results are ordered in a Z-Curve.
 
static void Subdivide (this Bounds bounds, ref NativeList< Bounds > subdividedBounds)
 Divides the boundary into eight smaller boundaries (like in an octree). The results are ordered in a Z-Curve.
 
static float Volume (this Bounds bounds)
 

Member Function Documentation

◆ Area()

static float Area ( this Bounds bounds)
static
Parameters
bounds
Returns
The surface area of the cuboid spanned by the bounds

◆ CombineWith()

static Bounds CombineWith ( this Bounds bounds,
Bounds other )
static

Returns the bounds that enclose both these bounds and the other ones.

Parameters
bounds
other
Returns

◆ Contains()

static bool Contains ( this Bounds bounds,
Bounds other )
static

Returns true if the other bounds are completely contained in the these bounds.

Parameters
bounds
other
Returns

◆ GetCornerPoints()

static FixedList128Bytes< float3 > GetCornerPoints ( this Bounds bounds)
static
Parameters
bounds
Returns
The corner vertices of the cuboid defined by the bounds

◆ IsDegenerate()

static bool IsDegenerate ( ref this Bounds bounds)
static
Parameters
bounds
Returns
True if the bounds are zero, infinite or contain NaNs. Otherwise, false is returned

◆ Overlaps()

static bool Overlaps ( this Bounds bounds,
Bounds other )
static
Parameters
bounds
other
Returns
True if the bounds overlap with the other ones, false otherwise

◆ OverlapVolume()

static float OverlapVolume ( this Bounds bounds0,
Bounds bounds1 )
static
Parameters
bounds0
bounds1
Returns
The overlapping volume with the other bounds. If the two bounds do not overlap, 0 is returned

◆ Subdivide() [1/2]

static Bounds[] Subdivide ( this Bounds bounds)
static

Divides the boundary into eight smaller boundaries (like in an octree). The results are ordered in a Z-Curve.

Parameters
bounds
Returns

◆ Subdivide() [2/2]

static void Subdivide ( this Bounds bounds,
ref NativeList< Bounds > subdividedBounds )
static

Divides the boundary into eight smaller boundaries (like in an octree). The results are ordered in a Z-Curve.

Parameters
bounds
Returns

◆ Volume()

static float Volume ( this Bounds bounds)
static
Parameters
bounds
Returns
The volume of the cuboid spanned by the bounds