docs.unity3d.com
    Show / Hide Table of Contents

    Struct Aabb

    Namespace: Unity.Reflect.Geometry
    Syntax
    public struct Aabb

    Constructors

    Aabb(Vector3, Vector3, Aabb.FromCenter)

    Declaration
    public Aabb(Vector3 center, Vector3 extents, Aabb.FromCenter _)
    Parameters
    Type Name Description
    Vector3 center
    Vector3 extents
    Aabb.FromCenter _

    Aabb(Vector3, Vector3, Aabb.FromMinMax)

    Declaration
    public Aabb(Vector3 min, Vector3 max, Aabb.FromMinMax _)
    Parameters
    Type Name Description
    Vector3 min
    Vector3 max
    Aabb.FromMinMax _

    Fields

    Center

    Declaration
    public Vector3 Center
    Field Value
    Type Description
    Vector3

    Extents

    Declaration
    public Vector3 Extents
    Field Value
    Type Description
    Vector3

    FromCenterTag

    Declaration
    public static Aabb.FromCenter FromCenterTag
    Field Value
    Type Description
    Aabb.FromCenter

    FromMinMaxTag

    Declaration
    public static Aabb.FromMinMax FromMinMaxTag
    Field Value
    Type Description
    Aabb.FromMinMax

    Properties

    Max

    Declaration
    public readonly Vector3 Max { get; }
    Property Value
    Type Description
    Vector3

    Min

    Declaration
    public readonly Vector3 Min { get; }
    Property Value
    Type Description
    Vector3

    Size

    Declaration
    public readonly Vector3 Size { get; }
    Property Value
    Type Description
    Vector3

    Volume

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

    Methods

    Contains(Vector3)

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

    Encapsulate(Aabb)

    Declaration
    public void Encapsulate(Aabb add)
    Parameters
    Type Name Description
    Aabb add

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(Aabb)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Overlap(Aabb)

    Positive value is a distance on the specified axis, negative value is the overlap on the specified axis

    Declaration
    public Vector3 Overlap(Aabb other)
    Parameters
    Type Name Description
    Aabb other
    Returns
    Type Description
    Vector3

    Operators

    Equality(Aabb, Aabb)

    Declaration
    public static bool operator ==(Aabb x, Aabb y)
    Parameters
    Type Name Description
    Aabb x
    Aabb y
    Returns
    Type Description
    Boolean

    Inequality(Aabb, Aabb)

    Declaration
    public static bool operator !=(Aabb x, Aabb y)
    Parameters
    Type Name Description
    Aabb x
    Aabb y
    Returns
    Type Description
    Boolean

    Multiply(Matrix4x4, Aabb)

    Declaration
    public static Aabb operator *(Matrix4x4 matrix4X4, Aabb box)
    Parameters
    Type Name Description
    Matrix4x4 matrix4X4
    Aabb box
    Returns
    Type Description
    Aabb

    Extension Methods

    GeometryExtensions.ToUnity(Aabb)
    Back to top
    Terms of use
    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