Method | Description | |
---|---|---|
AxisAlignedBox ( ) : System | ||
AxisAlignedBox ( |
||
AxisAlignedBox ( Vector3 min, Vector3 max ) : System | ||
Clone ( ) : object | ||
Contains ( Vector3 v ) : bool |
Tests whether the given point contained by this box.
|
|
Equals ( object obj ) : bool | ||
FromDimensions ( Vector3 center, Vector3 size ) : |
Return new bounding box from the supplied dimensions.
|
|
GetHashCode ( ) : int | ||
Intersection ( |
Calculate the area of intersection of this box and another
|
|
Intersects ( |
Returns whether or not this box intersects another.
|
|
Intersects ( |
|
|
Intersects ( |
Tests whether this box intersects a sphere.
|
|
Intersects ( Vector3 vector ) : bool |
Tests whether the vector point is within this box.
|
|
Merge ( |
Allows for merging two boxes together (combining).
|
|
Merge ( Vector3 point ) : void |
Extends the box to encompass the specified point (if needed).
|
|
Scale ( Vector3 factor ) : void |
Scales the size of the box by the supplied factor.
|
|
SetExtents ( Vector3 min, Vector3 max ) : void |
Sets both Minimum and Maximum at once, so that UpdateCorners only needs to be called once as well.
|
|
ToString ( ) : string | ||
Transform ( |
|
|
operator ( ) : bool |
Method | Description | |
---|---|---|
UpdateCorners ( ) : void |
|
public AxisAlignedBox ( |
||
box | ||
return | System |
public AxisAlignedBox ( Vector3 min, Vector3 max ) : System | ||
min | Vector3 | |
max | Vector3 | |
return | System |
public static FromDimensions ( Vector3 center, Vector3 size ) : |
||
center | Vector3 | Center of the new box |
size | Vector3 | Entire size of the new box |
return |
public Intersection ( |
||
b2 | ||
return |
public Intersects ( |
||
box2 | ||
return | bool |
public Merge ( |
||
box | Source box. | |
return | void |
public Scale ( Vector3 factor ) : void | ||
factor | Vector3 | Factor of scaling to apply to the box. |
return | void |
public SetExtents ( Vector3 min, Vector3 max ) : void | ||
min | Vector3 | |
max | Vector3 | |
return | void |