Struct Aabb
Syntax
[Serializable]
public struct Aabb
Fields
Empty
Declaration
public static readonly Aabb Empty
Field Value
Max
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float3 |
|
Min
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float3 |
|
Properties
Center
Declaration
public float3 Center { get; }
Property Value
Type |
Description |
Unity.Mathematics.float3 |
|
Extents
Declaration
public float3 Extents { get; }
Property Value
Type |
Description |
Unity.Mathematics.float3 |
|
IsValid
Declaration
public bool IsValid { get; }
Property Value
SurfaceArea
Declaration
public float SurfaceArea { get; }
Property Value
Methods
ClosestPoint(float3)
Returns the closest point on the bounds of the AABB to the specified position.
A target point in space.
Declaration
public float3 ClosestPoint(float3 position)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
position |
|
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
Contains(float3)
Declaration
public bool Contains(float3 point)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
point |
|
Returns
Contains(Aabb)
Declaration
public bool Contains(Aabb aabb)
Parameters
Type |
Name |
Description |
Aabb |
aabb |
|
Returns
Expand(Single)
Declaration
public void Expand(float distance)
Parameters
Type |
Name |
Description |
Single |
distance |
|
Include(float3)
Declaration
public void Include(float3 point)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
point |
|
Include(Aabb)
Declaration
public void Include(Aabb aabb)
Parameters
Type |
Name |
Description |
Aabb |
aabb |
|
Overlaps(Aabb)
Declaration
public bool Overlaps(Aabb other)
Parameters
Type |
Name |
Description |
Aabb |
other |
|
Returns
Union(Aabb, Aabb)
Declaration
public static Aabb Union(Aabb a, Aabb b)
Parameters
Returns