Struct Aabb
Syntax
Constructors
Aabb(float2)
Declaration
public Aabb(float2 point)
Parameters
Type |
Name |
Description |
float2 |
point |
|
Aabb(float2, float2)
Declaration
public Aabb(float2 min, float2 max)
Parameters
Type |
Name |
Description |
float2 |
min |
|
float2 |
max |
|
Aabb(Aabb, Aabb)
Declaration
public Aabb(Aabb aabb1, Aabb aabb2)
Parameters
Type |
Name |
Description |
Aabb |
aabb1 |
|
Aabb |
aabb2 |
|
Fields
Max
Declaration
Field Value
Min
Declaration
Field Value
Properties
Center
Declaration
public float2 Center { get; }
Property Value
Empty
Declaration
public static Aabb Empty { get; }
Property Value
Extents
Declaration
public float2 Extents { get; }
Property Value
HalfExtents
Declaration
public float2 HalfExtents { get; }
Property Value
IsValid
Declaration
public bool IsValid { get; }
Property Value
SurfaceArea
Declaration
public float SurfaceArea { get; }
Property Value
Methods
Combine(Aabb)
Declaration
public void Combine(Aabb other)
Parameters
Type |
Name |
Description |
Aabb |
other |
|
Contains(Aabb)
Declaration
public bool Contains(Aabb other)
Parameters
Type |
Name |
Description |
Aabb |
other |
|
Returns
Deflate(Single)
Declaration
public void Deflate(float delta)
Parameters
Type |
Name |
Description |
Single |
delta |
|
Include(float2)
Declaration
public void Include(float2 point)
Parameters
Type |
Name |
Description |
float2 |
point |
|
Include(Aabb)
Declaration
public void Include(Aabb aabb)
Parameters
Type |
Name |
Description |
Aabb |
aabb |
|
Inflate(Single)
Declaration
public void Inflate(float delta)
Parameters
Type |
Name |
Description |
Single |
delta |
|
Overlap(float2)
Declaration
public bool Overlap(float2 point)
Parameters
Type |
Name |
Description |
float2 |
point |
|
Returns
Overlap(Aabb)
Declaration
public bool Overlap(Aabb aabb)
Parameters
Type |
Name |
Description |
Aabb |
aabb |
|
Returns
Union(Aabb, Aabb)
Declaration
public static Aabb Union(Aabb aabb1, Aabb aabb2)
Parameters
Type |
Name |
Description |
Aabb |
aabb1 |
|
Aabb |
aabb2 |
|
Returns