Struct Aabb | Package Manager UI website
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
    float3

    Min

    Declaration
    public float3 Min
    Field Value
    Type Description
    float3

    Properties

    Center

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

    Extents

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

    IsValid

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

    SurfaceArea

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

    Methods

    Contains(float3)

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

    Contains(Aabb)

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

    CreateFromPoints(float3x4)

    Declaration
    public static Aabb CreateFromPoints(float3x4 points)
    Parameters
    Type Name Description
    float3x4 points
    Returns
    Type Description
    Aabb

    Expand(Single)

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

    Include(float3)

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

    Include(Aabb)

    Declaration
    public void Include(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
    System.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