# implicit operator float4x4

> Converts a Matrix4x4 to a float4x4.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## implicit operator float4x4(float4x)

Converts a [Matrix4x4](/engine/6000.7/script-reference/unityengine/matrix4x4.md) to a [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md).

```csharp
public static implicit operator float4x4(Matrix4x4 m)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)):&#x20;

### Returns

| Type                                                                      | Description                    |
| ------------------------------------------------------------------------- | ------------------------------ |
| [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) | The converted float4x4 result. |

### Remarks

An implicit conversion operator that converts an input [Matrix4x4](/engine/6000.7/script-reference/unityengine/matrix4x4.md) value to a [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md).

### Examples

```csharp
// Attach this script to a GameObject.
using UnityEngine;
using Unity.Mathematics;

public class Example_MatrixConversion : MonoBehaviour
{
    void Start()
    {
        // Create a sample Matrix4x4 (TRS for clarity)
        Vector3 position = new Vector3(1f, 2f, 3f);
        Quaternion rotation = Quaternion.Euler(10f, 20f, 30f);
        Vector3 scale = new Vector3(2f, 2f, 2f);
        Matrix4x4 unityMatrix = Matrix4x4.TRS(position, rotation, scale);

        Debug.Log("Input UnityEngine.Matrix4x4 is:\n" + unityMatrix.ToString());

        // Implicit conversion to Unity.Mathematics.float4x4
        float4x4 mathMatrix = unityMatrix;

        Debug.Log("Result Unity.Mathematics.float4x4 is:\n" + mathMatrix.ToString());
    }
}
```

## implicit operator Matrix4x4(Matrix4x)

Converts a [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) to a [Matrix4x4](/engine/6000.7/script-reference/unityengine/matrix4x4.md).

```csharp
public static implicit operator Matrix4x4(float4x4 m)
```

### Parameters

**** (\[float4x4]\(/engine/6000.7/script-reference/unity/mathematics/float4x4)):&#x20;

### Returns

| Type                                                                  | Description                     |
| --------------------------------------------------------------------- | ------------------------------- |
| [Matrix4x4](/engine/6000.7/script-reference/unityengine/matrix4x4.md) | The converted Matrix4x4 result. |

### Remarks

An implicit conversion operator that converts an input [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) value to a [Matrix4x4](/engine/6000.7/script-reference/unityengine/matrix4x4.md).
