docs.unity.cn
    Show / Hide Table of Contents

    Class PoseExtensions

    Extension methods for Pose structs

    Inheritance
    Object
    PoseExtensions
    Namespace: Unity.XRTools.Utils
    Syntax
    public static class PoseExtensions : object

    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

    TranslateLocal(Pose, Vector3)

    Translates this pose by translation, relative to this pose's local axes

    Declaration
    public static Pose TranslateLocal(this Pose pose, Vector3 translation)
    Parameters
    Type Name Description
    Pose pose

    The pose to which the translation should be applied

    Vector3 translation

    Positional offset to apply to the pose

    Returns
    Type Description
    Pose

    A pose translated in local space by translation

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use