docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PoseExtensions

    Several method extensions to Pose for inverse-transforming additional Unity types.

    Inheritance
    object
    PoseExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARFoundation
    Assembly: Unity.XR.ARFoundation.dll
    Syntax
    public static class PoseExtensions

    Methods

    InverseTransformDirection(Pose, Vector3)

    Inversely transform the direction by Pose.

    Declaration
    public static Vector3 InverseTransformDirection(this Pose pose, Vector3 direction)
    Parameters
    Type Name Description
    Pose pose

    The Pose to use.

    Vector3 direction

    A direction to inversely transform.

    Returns
    Type Description
    Vector3

    A direction inversely transformed by the pose.

    InverseTransformPosition(Pose, Vector3)

    Inversely transform the position by Pose.

    Declaration
    public static Vector3 InverseTransformPosition(this Pose pose, Vector3 position)
    Parameters
    Type Name Description
    Pose pose

    The Pose to use.

    Vector3 position

    A position to inversely transform.

    Returns
    Type Description
    Vector3

    A position inversely transformed by the pose.

    InverseTransformPositions(Pose, List<Vector3>)

    Inversely transform the positions by Pose. The transform is made in-place.

    Declaration
    public static void InverseTransformPositions(this Pose pose, List<Vector3> positions)
    Parameters
    Type Name Description
    Pose pose

    The Pose to use.

    List<Vector3> positions

    A List of positions to inversely transform.

    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)