docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrExtent2Df

    Extent in two dimensions.

    Implements
    IEquatable<XrExtent2Df>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public struct XrExtent2Df : IEquatable<XrExtent2Df>

    Constructors

    XrExtent2Df(float, float)

    Construct an instance.

    Declaration
    public XrExtent2Df(float width, float height)
    Parameters
    Type Name Description
    float width

    The width value.

    float height

    The height value.

    Fields

    Height

    The floating-point height of the extent.

    Declaration
    public float Height
    Field Value
    Type Description
    float

    Width

    The floating-point width of the extent.

    Declaration
    public float Width
    Field Value
    Type Description
    float

    Methods

    Equals(object)

    Compares for equality. Two instances are equal if their bits are exactly identical for the Width and Height fields.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The other object.

    Returns
    Type Description
    bool

    true if obj is an XrExtent2Df and equal to this instance. Otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(XrExtent2Df)

    Compares for equality. Two instances are equal if their bits are exactly identical for the Width and Height fields.

    Declaration
    public bool Equals(XrExtent2Df other)
    Parameters
    Type Name Description
    XrExtent2Df other

    The other instance.

    Returns
    Type Description
    bool

    true if the instances are equal. Otherwise, `false.

    GetHashCode()

    Generate a unique hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)