# sincos

> Returns the sine and cosine of the input float value x through the out parameters s and c.

## Definition

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

## sincos(float, float, float)

Returns the sine and cosine of the input float value x through the out parameters s and c.

```csharp
public static void sincos(float x, out float s, out float c)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Input angle in radians.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Output sine of the input.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Output cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(float2, float2, float2)

Returns the componentwise sine and cosine of the input float2 vector x through the out parameters s and c.

```csharp
public static void sincos(float2 x, out float2 s, out float2 c)
```

### Parameters

**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): Input vector containing angles in radians.**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): Output vector containing the componentwise sine of the input.**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(float3, float3, float3)

Returns the componentwise sine and cosine of the input float3 vector x through the out parameters s and c.

```csharp
public static void sincos(float3 x, out float3 s, out float3 c)
```

### Parameters

**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Input vector containing angles in radians.**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Output vector containing the componentwise sine of the input.**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(float4, float4, float4)

Returns the componentwise sine and cosine of the input float4 vector x through the out parameters s and c.

```csharp
public static void sincos(float4 x, out float4 s, out float4 c)
```

### Parameters

**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): Input vector containing angles in radians.**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): Output vector containing the componentwise sine of the input.**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(double, double, double)

Returns the sine and cosine of the input double value x through the out parameters s and c.

```csharp
public static void sincos(double x, out double s, out double c)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Input angle in radians.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Output sine of the input.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Output cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(double2, double2, double2)

Returns the componentwise sine and cosine of the input double2 vector x through the out parameters s and c.

```csharp
public static void sincos(double2 x, out double2 s, out double2 c)
```

### Parameters

**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): Input vector containing angles in radians.**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): Output vector containing the componentwise sine of the input.**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(double3, double3, double3)

Returns the componentwise sine and cosine of the input double3 vector x through the out parameters s and c.

```csharp
public static void sincos(double3 x, out double3 s, out double3 c)
```

### Parameters

**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): Input vector containing angles in radians.**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): Output vector containing the componentwise sine of the input.**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.

## sincos(double4, double4, double4)

Returns the componentwise sine and cosine of the input double4 vector x through the out parameters s and c.

```csharp
public static void sincos(double4 x, out double4 s, out double4 c)
```

### Parameters

**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): Input vector containing angles in radians.**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): Output vector containing the componentwise sine of the input.**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): Output vector containing the componentwise cosine of the input.

### Remarks

When Burst compiled, his method is faster than calling sin() and cos() separately.
