BoundingBoxExt Struct
Namespace: Stride.Core.MathematicsAssembly: Stride.Core.Mathematics.dll
Represents an axis-aligned bounding box in three dimensional space that store only the Center and Extent.
[DataContract]
public struct BoundingBoxExt : IEquatable<BoundingBoxExt>
Name | Description | |
---|---|---|
Constructors | ||
BoundingBoxExt(BoundingBox) | Initializes a new instance of the BoundingBoxExt struct. |
|
BoundingBoxExt(Vector3, Vector3) | Initializes a new instance of the BoundingBoxExt struct. |
|
Fields | ||
Center | The center of this bounding box. |
|
Empty | A BoundingBoxExt which represents an empty space. |
|
Extent | The extent of this bounding box. |
|
Properties | ||
Maximum | Gets the maximum. |
|
Minimum | Gets the minimum. |
|
Methods | ||
Equals(BoundingBoxExt) | ||
Equals(Object) | ||
GetHashCode() | ||
Merge(ref BoundingBoxExt, ref BoundingBoxExt, out BoundingBoxExt) | Constructs a BoundingBoxExt that is as large as the total combined area of the two specified boxes. |
|
Transform(Matrix) | Transform this Bounding box |
|
Operators | ||
Equality(BoundingBoxExt, BoundingBoxExt) | Implements the ==. |
|
Explicit(BoundingBox to BoundingBoxExt) | Performs an explicit conversion from BoundingBox to BoundingBoxExt. |
|
Explicit(BoundingBoxExt to BoundingBox) | Performs an explicit conversion from BoundingBoxExt to BoundingBox. |
|
Inequality(BoundingBoxExt, BoundingBoxExt) | Implements the !=. |
Constructors
BoundingBoxExt(BoundingBox)
Initializes a new instance of the BoundingBoxExt struct.
public BoundingBoxExt(BoundingBox box)
Parameters
Type | Name | Description |
---|---|---|
BoundingBox | box | The box. |
BoundingBoxExt(Vector3, Vector3)
Initializes a new instance of the BoundingBoxExt struct.
public BoundingBoxExt(Vector3 minimum, Vector3 maximum)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | minimum | The minimum vertex of the bounding box. |
Vector3 | maximum | The maximum vertex of the bounding box. |
Fields
Center
The center of this bounding box.
public Vector3 Center
Field Value
Type | Description |
---|---|
Vector3 |
Empty
A BoundingBoxExt which represents an empty space.
public static readonly BoundingBoxExt Empty
Field Value
Type | Description |
---|---|
BoundingBoxExt |
Extent
The extent of this bounding box.
public Vector3 Extent
Field Value
Type | Description |
---|---|
Vector3 |
Properties
Maximum
Gets the maximum.
public readonly Vector3 Maximum { get; }
Property Value
Type | Description |
---|---|
Vector3 | The maximum. |
Minimum
Gets the minimum.
public readonly Vector3 Minimum { get; }
Property Value
Type | Description |
---|---|
Vector3 | The minimum. |
Methods
Equals(BoundingBoxExt)
public bool Equals(BoundingBoxExt other)
Parameters
Type | Name | Description |
---|---|---|
BoundingBoxExt | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Merge(ref BoundingBoxExt, ref BoundingBoxExt, out BoundingBoxExt)
Constructs a BoundingBoxExt that is as large as the total combined area of the two specified boxes.
public static void Merge(ref BoundingBoxExt value1, ref BoundingBoxExt value2, out BoundingBoxExt result)
Parameters
Type | Name | Description |
---|---|---|
BoundingBoxExt | value1 | The first box to merge. |
BoundingBoxExt | value2 | The second box to merge. |
BoundingBoxExt | result | When the method completes, contains the newly constructed bounding box. |
Transform(Matrix)
Transform this Bounding box
public void Transform(Matrix world)
Parameters
Type | Name | Description |
---|---|---|
Matrix | world | The transform to apply to the bounding box. |
Operators
Equality(BoundingBoxExt, BoundingBoxExt)
Implements the ==.
public static bool operator ==(BoundingBoxExt left, BoundingBoxExt right)
Parameters
Type | Name | Description |
---|---|---|
BoundingBoxExt | left | The left. |
BoundingBoxExt | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Explicit(BoundingBox to BoundingBoxExt)
Performs an explicit conversion from BoundingBox to BoundingBoxExt.
public static explicit operator BoundingBoxExt(BoundingBox boundingBox)
Parameters
Type | Name | Description |
---|---|---|
BoundingBox | boundingBox | The bounding box. |
Returns
Type | Description |
---|---|
BoundingBoxExt | The result of the conversion. |
Explicit(BoundingBoxExt to BoundingBox)
Performs an explicit conversion from BoundingBoxExt to BoundingBox.
public static explicit operator BoundingBox(BoundingBoxExt bbExt)
Parameters
Type | Name | Description |
---|---|---|
BoundingBoxExt | bbExt | The bb ext. |
Returns
Type | Description |
---|---|
BoundingBox | The result of the conversion. |
Inequality(BoundingBoxExt, BoundingBoxExt)
Implements the !=.
public static bool operator !=(BoundingBoxExt left, BoundingBoxExt right)
Parameters
Type | Name | Description |
---|---|---|
BoundingBoxExt | left | The left. |
BoundingBoxExt | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |