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