Struct Aabb | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Aabb

    Namespace: Unity.Physics
    Syntax
    [Serializable]
    public struct Aabb

    Fields

    Empty

    Declaration
    public static readonly Aabb Empty
    Field Value
    Type Description
    Aabb

    Max

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

    Min

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

    Properties

    Center

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

    Extents

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

    IsValid

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

    SurfaceArea

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

    Methods

    ClosestPoint(float3)

    Returns the closest point on the bounds of the AABB to the specified position. A target point in space.

    Declaration
    public float3 ClosestPoint(float3 position)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 position
    Returns
    Type Description
    Unity.Mathematics.float3

    Contains(float3)

    Declaration
    public bool Contains(float3 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 point
    Returns
    Type Description
    Boolean

    Contains(Aabb)

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

    Expand(Single)

    Declaration
    public void Expand(float distance)
    Parameters
    Type Name Description
    Single distance

    Include(float3)

    Declaration
    public void Include(float3 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 point

    Include(Aabb)

    Declaration
    public void Include(Aabb aabb)
    Parameters
    Type Name Description
    Aabb aabb

    Intersect(Aabb)

    Declaration
    public void Intersect(Aabb aabb)
    Parameters
    Type Name Description
    Aabb aabb

    Overlaps(Aabb)

    Declaration
    public bool Overlaps(Aabb other)
    Parameters
    Type Name Description
    Aabb other
    Returns
    Type Description
    Boolean

    Union(Aabb, Aabb)

    Declaration
    public static Aabb Union(Aabb a, Aabb b)
    Parameters
    Type Name Description
    Aabb a
    Aabb b
    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