Struct Aabb | 2D Entities | 0.29.0-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Struct Aabb

    Namespace: Unity.U2D.Entities.Physics
    Syntax
    public struct Aabb

    Constructors

    Aabb(float2)

    Declaration
    public Aabb(float2 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float2 point

    Aabb(float2, float2)

    Declaration
    public Aabb(float2 min, float2 max)
    Parameters
    Type Name Description
    Unity.Mathematics.float2 min
    Unity.Mathematics.float2 max

    Aabb(Aabb, Aabb)

    Declaration
    public Aabb(Aabb aabb1, Aabb aabb2)
    Parameters
    Type Name Description
    Aabb aabb1
    Aabb aabb2

    Fields

    Max

    Declaration
    public float2 Max
    Field Value
    Type Description
    Unity.Mathematics.float2

    Min

    Declaration
    public float2 Min
    Field Value
    Type Description
    Unity.Mathematics.float2

    Properties

    Center

    Declaration
    public float2 Center { get; }
    Property Value
    Type Description
    Unity.Mathematics.float2

    Empty

    Declaration
    public static Aabb Empty { get; }
    Property Value
    Type Description
    Aabb

    Extents

    Declaration
    public float2 Extents { get; }
    Property Value
    Type Description
    Unity.Mathematics.float2

    HalfExtents

    Declaration
    public float2 HalfExtents { get; }
    Property Value
    Type Description
    Unity.Mathematics.float2

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    Boolean

    SurfaceArea

    Declaration
    public float SurfaceArea { get; }
    Property Value
    Type Description
    Single

    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
    Type Description
    Boolean

    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
    Unity.Mathematics.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
    Unity.Mathematics.float2 point
    Returns
    Type Description
    Boolean

    Overlap(Aabb)

    Declaration
    public bool Overlap(Aabb aabb)
    Parameters
    Type Name Description
    Aabb aabb
    Returns
    Type Description
    Boolean

    Union(Aabb, Aabb)

    Declaration
    public static Aabb Union(Aabb aabb1, Aabb aabb2)
    Parameters
    Type Name Description
    Aabb aabb1
    Aabb aabb2
    Returns
    Type Description
    Aabb
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 August 2020