docs.unity3d.com
    Show / Hide Table of Contents

    Class PoseExtensions

    Extension methods for Pose structs

    Inheritance
    Object
    PoseExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class PoseExtensions

    Methods

    ApplyInverseOffsetTo(Pose, Vector3)

    Offsets the given position by the inverse of this pose

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

    The pose which will be used to apply the offset

    Vector3 position

    The position which will be offset

    Returns
    Type Description
    Vector3

    A position offset by the inverse of pose

    ApplyOffsetTo(Pose, Pose)

    Offsets the given pose by this parent pose

    Declaration
    public static Pose ApplyOffsetTo(this Pose pose, Pose otherPose)
    Parameters
    Type Name Description
    Pose pose

    The pose which will be used to apply the offset

    Pose otherPose

    The pose that will be offset

    Returns
    Type Description
    Pose

    A pose offset by pose

    ApplyOffsetTo(Pose, Vector3)

    Offsets the given position by this pose

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

    The pose which will be used to apply the offset

    Vector3 position

    The position which will be offset

    Returns
    Type Description
    Vector3

    A position offset by pose

    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