# cross

> Returns the cross product of two float3 vectors.

## Definition

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

## cross(float3, float3)

Returns the cross product of two float3 vectors.

```csharp
public static float3 cross(float3 x, float3 y)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): First vector to use in cross product.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): Second vector to use in cross product.

### Returns

| Type                                                                  | Description                   |
| --------------------------------------------------------------------- | ----------------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The cross product of x and y. |

## cross(double3, double3)

Returns the cross product of two double3 vectors.

```csharp
public static double3 cross(double3 x, double3 y)
```

### Parameters

**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): First vector to use in cross product.**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): Second vector to use in cross product.

### Returns

| Type                                                                    | Description                   |
| ----------------------------------------------------------------------- | ----------------------------- |
| [double3](/engine/6000.7/script-reference/unity/mathematics/double3.md) | The cross product of x and y. |
