# transform

> Returns the result of transforming a float3 point by an AffineTransform.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## transform(AffineTransform, float3)

Returns the result of transforming a float3 point by an AffineTransform.

```csharp
public static float3 transform(AffineTransform a, float3 pos)
```

### Parameters

**** (\[AffineTransform]\(/engine/6000.7/script-reference/unity/mathematics/affinetransform)): The AffineTransform.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The position to transform.

### Returns

| Type                                                                  | Description               |
| --------------------------------------------------------------------- | ------------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The transformed position. |

## transform(double4x4, double3)

Return the result of transforming a double3 point by a double4x4 matrix

```csharp
public static double3 transform(double4x4 a, double3 b)
```

### Parameters

**** (\[double4x4]\(/engine/6000.7/script-reference/unity/mathematics/double4x4)): Left hand side matrix argument that specifies the transformation.**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): Right hand side point argument to be transformed.

### Returns

| Type                                                                    | Description            |
| ----------------------------------------------------------------------- | ---------------------- |
| [double3](/engine/6000.7/script-reference/unity/mathematics/double3.md) | The transformed point. |

## transform(float4x4, float3)

Return the result of transforming a float3 point by a float4x4 matrix

```csharp
public static float3 transform(float4x4 a, float3 b)
```

### Parameters

**** (\[float4x4]\(/engine/6000.7/script-reference/unity/mathematics/float4x4)): Left hand side matrix argument that specifies the transformation.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): Right hand side point argument to be transformed.

### Returns

| Type                                                                  | Description            |
| --------------------------------------------------------------------- | ---------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The transformed point. |

## transform(RigidTransform, float3)

Returns the result of transforming a float3 point by a RigidTransform.

```csharp
public static float3 transform(RigidTransform a, float3 pos)
```

### Parameters

**** (\[RigidTransform]\(/engine/6000.7/script-reference/unity/mathematics/rigidtransform)): The RigidTransform.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The position to transform.

### Returns

| Type                                                                  | Description               |
| --------------------------------------------------------------------- | ------------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The transformed position. |
