Class PoseExtensions
Several method extensions to Pose for inverse-transforming additional Unity types.
Namespace: UnityEngine.XR.ARFoundation
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 |
| Vector3 | direction | A direction to inversely transform |
Returns
| Type | Description |
|---|---|
| Vector3 | An direction inversely transformed by the |
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 |
| Vector3 | position | A position to inversely transform |
Returns
| Type | Description |
|---|---|
| Vector3 | An position inversely transformed by the |
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 |
| List<Vector3> | positions | A |