Struct Aabb | 2D Entities | 0.22.0-preview.8
docs.unity3d.com
    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
    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
    public float2 Max
    Field Value
    Type Description
    float2

    Min

    Declaration
    public float2 Min
    Field Value
    Type Description
    float2

    Properties

    Center

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

    Empty

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

    Extents

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

    HalfExtents

    Declaration
    public float2 HalfExtents { get; }
    Property Value
    Type Description
    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
    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
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023