Class AABB
Inheritance
System.Object
AABB
Assembly: Eco.Core.dll
Syntax
public sealed class AABB : ValueType
Constructors
AABB(Vector3, Vector3)
Declaration
public AABB(Vector3 center, Vector3 fullWidth)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
center |
|
System.Numerics.Vector3 |
fullWidth |
|
AABB(Single, Single)
Declaration
public AABB(float minimum = InfinityF, float maximum = -InfinityF)
Parameters
Type |
Name |
Description |
System.Single |
minimum |
|
System.Single |
maximum |
|
Fields
Max
Declaration
Field Value
Type |
Description |
System.Numerics.Vector3 |
|
Min
Declaration
Field Value
Type |
Description |
System.Numerics.Vector3 |
|
Properties
Volume
Declaration
public float Volume { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Center()
Declaration
Returns
Type |
Description |
System.Numerics.Vector3 |
|
Combine(ref AABB)
Declaration
public AABB Combine(ref AABB other)
Parameters
Type |
Name |
Description |
AABB |
other |
|
Returns
Contains(AABB)
Declaration
public bool Contains(AABB aabb)
Parameters
Type |
Name |
Description |
AABB |
aabb |
|
Returns
Type |
Description |
System.Boolean |
|
Contains(Vector3)
Declaration
public bool Contains(Vector3 point)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
point |
|
Returns
Type |
Description |
System.Boolean |
|
Diff()
Declaration
Returns
Type |
Description |
System.Numerics.Vector3 |
|
Equals(AABB)
Declaration
public bool Equals(AABB other)
Parameters
Type |
Name |
Description |
AABB |
other |
|
Returns
Type |
Description |
System.Boolean |
|
FromSphere(Vector3, Single)
Declaration
public static AABB FromSphere(Vector3 pos, float radius)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
pos |
|
System.Single |
radius |
|
Returns
IntersectsAABB(AABB)
Declaration
public bool IntersectsAABB(AABB box)
Parameters
Type |
Name |
Description |
AABB |
box |
|
Returns
Type |
Description |
System.Boolean |
|
IntersectsSphere(Sphere)
Declaration
public bool IntersectsSphere(Sphere sphere)
Parameters
Type |
Name |
Description |
Sphere |
sphere |
|
Returns
Type |
Description |
System.Boolean |
|
IntersectsSphere(Vector3, Single)
Declaration
public bool IntersectsSphere(Vector3 center, float radius)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
center |
|
System.Single |
radius |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods