# GetRelativePose2D

> Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified transform plane to transform into 2D space.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## GetRelativePose2D(Matrix4x4, Matrix4x4, TransformPlane, TransformPlaneCustom, Vector2, float, Vector2)

Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified transform plane to transform into 2D space.

```csharp
public static void GetRelativePose2D(in Matrix4x4 transformFrom, in Matrix4x4 transformTo, PhysicsWorld.TransformPlane transformPlane, in PhysicsWorld.TransformPlaneCustom transformPlaneCustom, out Vector2 translation, out float rotation, out Vector2 scale)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform used as a reference to transform from.**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform used as a reference to transform to.**** (\[TransformPlane]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplane)): The transform plane to use.**** (\[TransformPlaneCustom]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformplanecustom)): The custom transform plane to use (if required).**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The 2D relative translation.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D relative rotation.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The 2D relative scale. Scale is not relative and always uses the transformTo lossyScale.

## GetRelativePose2D(Matrix4x4, Matrix4x4, PhysicsWorld, Vector2, float, Vector2)

Get the relative transformation pose (translation, rotation and scale) between the two specified transform matrix using the specified world's transform plane to transform into 2D space.

```csharp
public static void GetRelativePose2D(in Matrix4x4 transformFrom, in Matrix4x4 transformTo, PhysicsWorld world, out Vector2 translation, out float rotation, out Vector2 scale)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform used as a reference to transform from.**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform used as a reference to transform to.**** (\[PhysicsWorld]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsworld)): The world whose transform plane is used.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The 2D relative translation.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The 2D relative rotation.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The 2D relative scale. Scale is not relative and always uses the transformTo lossyScale.
