Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Box2D.h |
Include |
#include "Math/Box2D.h" |
struct FBox2D
Implements a rectangular 2D Box.
Name | Description | |
---|---|---|
|
FBox2D() |
Default constructor (no initialization). |
|
FBox2D ( |
Use ForceInit constructor instead. |
|
FBox2D ( |
Creates and initializes a new box. |
|
FBox2D |
Creates and initializes a new box from an array of points. |
|
FBox2D |
Creates and initializes a new box from the specified parameters. |
|
FBox2D |
Creates and initializes a new box from the given set of points. |
Name | Description | ||
---|---|---|---|
|
float |
ComputeSquaredDistanceToPoint ( |
Calculates the distance of a point to this box. |
|
ExpandBy ( |
Increase the bounding box volume. |
|
|
float |
GetArea() |
Gets the box area. |
|
GetCenter() |
Gets the box's center point. |
|
|
GetCenterAndExtents |
Get the center and extents |
|
|
GetClosestPointTo ( |
Calculates the closest point on or inside the box to a given point in space. |
|
|
GetExtent() |
Gets the box extents around the center. |
|
|
GetSize() |
Gets the box size. |
|
|
Init() |
Set the initial values of the bounding box to Zero. |
|
|
Intersect ( |
Checks whether the given box intersects this box. |
|
|
IsInside ( |
Checks whether the given point is inside this box. |
|
|
IsInside ( |
Checks whether the given box is fully encapsulated by this box. |
|
|
ShiftBy ( |
Shift bounding box position. |
|
|
ToString() |
Get a textual representation of this box. |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
Compares two boxes for inequality. |
|
|
operator[] ( |
Gets reference to the min or max of this bounding volume. |
|
|
operator+ ( |
Gets the result of addition to this bounding volume. |
|
|
operator+ ( |
Gets the result of addition to this bounding volume. |
|
|
FBox2D & |
operator+= ( |
Adds to this bounding box to include a new bounding volume. |
|
FBox2D & |
operator+= ( |
Adds to this bounding box to include a given point. |
|
operator== ( |
Compares two boxes for equality. |