docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRHumanBodyPose2DJoint

    Container for a human body pose 2D joint as part of a AR detected screen space skeleton.

    Implements
    IEquatable<XRHumanBodyPose2DJoint>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public struct XRHumanBodyPose2DJoint : IEquatable<XRHumanBodyPose2DJoint>

    Constructors

    XRHumanBodyPose2DJoint(int, int, Vector2, bool)

    Constructs a XRHumanBodyPose2DJoint with the given parameters.

    Declaration
    public XRHumanBodyPose2DJoint(int index, int parentIndex, Vector2 position, bool tracked)
    Parameters
    Type Name Description
    int index

    The index of the joint in the skeleton hierachy.

    int parentIndex

    The index of the parent joint in the skeleton hierarchy.

    Vector2 position

    The position of the joint in 2D screenspace.

    bool tracked

    Whether the joint is tracked.

    Properties

    index

    The index for the joint in the skeleton hierachy.

    Declaration
    public int index { get; }
    Property Value
    Type Description
    int

    The index for the joint in the skeleton hierachy.

    Remarks

    All indices will be non-negative.

    parentIndex

    The index for the parent joint in the skeleton hierachy.

    Declaration
    public int parentIndex { get; }
    Property Value
    Type Description
    int

    The index for the parent joint in the skeleton hierachy.

    Remarks

    A negative parent index means that the joint has no parent in the hierachy.

    position

    The position of the joint in 2D screenspace.

    Declaration
    public Vector2 position { get; }
    Property Value
    Type Description
    Vector2

    The position of the joint in 2D screenspace.

    tracked

    Whether the joint is tracked.

    Declaration
    public bool tracked { get; }
    Property Value
    Type Description
    bool

    true if the joint is tracked. Otherwise, false.

    Methods

    Equals(object)

    Tests for equality.

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

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRHumanBodyPose2DJoint and Equals(XRHumanBodyPose2DJoint) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRHumanBodyPose2DJoint)

    Tests for equality.

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

    The other XRHumanBodyPose2DJoint to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRHumanBodyPose2DJoint, otherwise false.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code generated from this object's fields.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this XRHumanBodyPose2DJoint. Floating point values use the "F5" format specifier.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of this XRHumanBodyPose2DJoint.

    Overrides
    ValueType.ToString()

    ToString(string)

    Generates a string representation of this XRHumanBodyPose2DJoint.

    Declaration
    public string ToString(string format)
    Parameters
    Type Name Description
    string format

    A format specifier used for the floating point fields.

    Returns
    Type Description
    string

    A string representation of this XRHumanBodyPose2DJoint.

    Operators

    operator ==(XRHumanBodyPose2DJoint, XRHumanBodyPose2DJoint)

    Tests for equality. Same as Equals(XRHumanBodyPose2DJoint).

    Declaration
    public static bool operator ==(XRHumanBodyPose2DJoint lhs, XRHumanBodyPose2DJoint rhs)
    Parameters
    Type Name Description
    XRHumanBodyPose2DJoint lhs

    The left-hand side of the comparison.

    XRHumanBodyPose2DJoint rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(XRHumanBodyPose2DJoint, XRHumanBodyPose2DJoint)

    Tests for inequality. Same as !Equals(XRHumanBodyPose2DJoint).

    Declaration
    public static bool operator !=(XRHumanBodyPose2DJoint lhs, XRHumanBodyPose2DJoint rhs)
    Parameters
    Type Name Description
    XRHumanBodyPose2DJoint lhs

    The left-hand side of the comparison.

    XRHumanBodyPose2DJoint rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is not equal to rhs, otherwise false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 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)