Method CreateFromCenterAndHalfExtents
CreateFromCenterAndHalfExtents(float3, float3)
Creates the AABB from a center and half extents.
Declaration
public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | center | Center of AABB. |
| float3 | halfExtents | Half extents of AABB. |
Returns
| Type | Description |
|---|---|
| MinMaxAABB | AABB created from inputs. |
Remarks
This function takes half extents. It is half the distance between Min and Max. If you have full extents, you can call CreateFromCenterAndExtents(float3, float3).