Show / Hide Table of Contents

Class AABB

Inheritance
System.Object
AABB
Namespace: Eco.Core.Utils
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
public Vector3 Max
Field Value
Type Description
System.Numerics.Vector3

Min

Declaration
public Vector3 Min
Field Value
Type Description
System.Numerics.Vector3

Properties

Volume

Declaration
public float Volume { get; }
Property Value
Type Description
System.Single

Methods

Center()

Declaration
public Vector3 Center()
Returns
Type Description
System.Numerics.Vector3

Combine(ref AABB)

Declaration
public AABB Combine(ref AABB other)
Parameters
Type Name Description
AABB other
Returns
Type Description
AABB

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
public Vector3 Diff()
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
Type Description
AABB

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

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾