Add constructor to BoundingBox for single point empty box construction
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include "../Types/String.h"
|
||||
|
||||
const BoundingBox BoundingBox::Empty(Vector3(MAX_float), Vector3(MIN_float));
|
||||
const BoundingBox BoundingBox::Zero(Vector3(0.0f), Vector3(0.0f));
|
||||
const BoundingBox BoundingBox::Zero(Vector3(0.0f));
|
||||
|
||||
String BoundingBox::ToString() const
|
||||
{
|
||||
|
||||
@@ -45,6 +45,16 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BoundingBox"/> struct.
|
||||
/// </summary>
|
||||
/// <param name="point">The location of the empty bounding box.</param>
|
||||
BoundingBox(const Vector3& point)
|
||||
: Minimum(point)
|
||||
, Maximum(point)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BoundingBox"/> struct.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user