Struct AABB | Entities | 0.8.0-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Struct AABB

    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct AABB

    Fields

    Center

    Declaration
    public float3 Center
    Field Value
    Type Description
    float3

    Extents

    Declaration
    public float3 Extents
    Field Value
    Type Description
    float3

    Properties

    Max

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

    Min

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

    Size

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

    Methods

    Contains(float3)

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

    Contains(AABB)

    Declaration
    public bool Contains(AABB b)
    Parameters
    Type Name Description
    AABB b
    Returns
    Type Description
    Boolean

    DistanceSq(float3)

    Declaration
    public float DistanceSq(float3 point)
    Parameters
    Type Name Description
    float3 point
    Returns
    Type Description
    Single

    ToString()

    Returns a string representation of the AABB.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Transform(float4x4, AABB)

    Declaration
    public static AABB Transform(float4x4 transform, AABB localBounds)
    Parameters
    Type Name Description
    float4x4 transform
    AABB localBounds
    Returns
    Type Description
    AABB

    Extension Methods

    AABBExtensions.ToBounds(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