A struct that defines an axis aligned bounding box (AABB). More...
Public Member Functions | |
ksBounds (ksVector3 min, ksVector3 max) | |
Constructor. More... | |
bool | Contains (ksVector3 point) |
Check if a point is contained by the bounds. More... | |
bool | Contains (ksBounds bounds) |
Check if another set of bounds is contained by the bounds. More... | |
bool | Intersects (ksBounds bounds) |
Check if another bounds intersects this bounds. More... | |
void | Encapsulate (ksVector3 point) |
Expand the volume to include a point. More... | |
void | Encapsulate (ksBounds bounds) |
Expand the volume to include another set of bounds. More... | |
bool | Equals (ksBounds other) |
Check if this bounds is equal to another bounds. More... | |
override bool | Equals (object obj) |
Check if this bounds is equal to an object. More... | |
override int | GetHashCode () |
Get the hash code for the bounds. More... | |
override string | ToString () |
Construct a string the describes the bounds. More... | |
Static Public Member Functions | |
static bool | operator== (ksBounds lhs, ksBounds rhs) |
Check if two bounds are equal More... | |
static bool | operator!= (ksBounds lhs, ksBounds rhs) |
Check if two bounds are not equal More... | |
static implicit | operator Bounds (ksBounds value) |
Implicit conversion from ksBounds to Unity Bounds. More... | |
static implicit | operator ksBounds (Bounds value) |
Implicit conversion from Unity Bounds to ksBounds. More... | |
static bool | operator== (ksBounds lhs, Bounds rhs) |
Equality comparison between Reactor bounds and Unity bounds. More... | |
static bool | operator== (Bounds lhs, ksBounds rhs) |
Equality comparison between Unity bounds and Reactor bounds. More... | |
static bool | operator!= (ksBounds lhs, Bounds rhs) |
Inequality comparison between Reactor bounds and Unity bounds. More... | |
static bool | operator!= (Bounds lhs, ksBounds rhs) |
Inequality comparison between Unity bounds and Reactor bounds. More... | |
Properties | |
ksVector3 | Min [get, set] |
Get/Set the minimum coordinates contained by the bounds. More... | |
ksVector3 | Max [get, set] |
Get the maxmimum coordinates contained by the bounds. More... | |
ksVector3 | Size [get, set] |
Get/Set the size of the bounds. More... | |
ksVector3 | Center [get, set] |
Get/Set the center of the bounds More... | |
bool | IsEmpty [get] |
The bounds are empty if any of the size dimensions are less than or equal to 0. More... | |
A struct that defines an axis aligned bounding box (AABB).
Constructor.
min | Min value. |
max | Max value. |
bool KS.Reactor.ksBounds.Contains | ( | ksBounds | bounds | ) |
Check if another set of bounds is contained by the bounds.
bounds | Bounds to test. |
bool KS.Reactor.ksBounds.Contains | ( | ksVector3 | point | ) |
Check if a point is contained by the bounds.
point | Point to test. |
void KS.Reactor.ksBounds.Encapsulate | ( | ksBounds | bounds | ) |
Expand the volume to include another set of bounds.
bounds | Bounds to encapsulate. |
void KS.Reactor.ksBounds.Encapsulate | ( | ksVector3 | point | ) |
Expand the volume to include a point.
point | Point to encapsulate. |
bool KS.Reactor.ksBounds.Equals | ( | ksBounds | other | ) |
Check if this bounds is equal to another bounds.
other | Other bounds to compare with this bounds. |
override bool KS.Reactor.ksBounds.Equals | ( | object | obj | ) |
Check if this bounds is equal to an object.
obj | Object to compare with this bounds. |
override int KS.Reactor.ksBounds.GetHashCode | ( | ) |
Get the hash code for the bounds.
bool KS.Reactor.ksBounds.Intersects | ( | ksBounds | bounds | ) |
Check if another bounds intersects this bounds.
bounds | Bounds to test against. |
|
static |
|
static |
|
static |
|
static |
Check if two bounds are not equal
lhs | |
rhs |
|
static |
|
static |
Check if two bounds are equal
lhs | |
rhs |
override string KS.Reactor.ksBounds.ToString | ( | ) |
Construct a string the describes the bounds.
|
getset |
Get/Set the center of the bounds
|
get |
The bounds are empty if any of the size dimensions are less than or equal to 0.
|
getset |
Get the maxmimum coordinates contained by the bounds.
The min value of the bounds will extend to accomodate the new max value when it is contains smaller values than the current min values.
|
getset |
Get/Set the minimum coordinates contained by the bounds.
The max value of the bounds will extend to accomodate the new min value when it contains larger values than the current max values.
|
getset |
Get/Set the size of the bounds.
The new size will recalculate the min and max values from the existing bounds center.