CreateFromCenterAndHalfExtents(float3, float3)
Creates the AABB from a center and half extents.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics.Geometry
- Assembly: UnityEngine.MathematicsModule
public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents)
Parameters
Returns
Type | Description |
|---|---|
| MinMaxAABB | AABB created from inputs. |
Remarks
This function takes half extents. It is half the distance between MinMaxAABB.Min and MinMaxAABB.Max. If you have full extents, you can call MinMaxAABB.CreateFromCenterAndExtents.