# CosSin

> Calculate both the Cosine and Sine of the specified angle.

## Definition

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

## CosSin(float, float, float)

Calculate both the Cosine and Sine of the specified angle.

```csharp
public static void CosSin(float angle, out float cosine, out float sine)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The angle to calculate, in radians.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The Cosine of the specified angle.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The Sine of the specified angle.

## CosSin(float)

Calculate both the Cosine and Sine of the specified angle.

```csharp
public static Vector2 CosSin(float angle)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The angle to calculate, in radians.

### Returns

| Type                                                              | Description                                                                 |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [Vector2](/engine/6000.5/script-reference/unityengine/vector2.md) | A 2D vector where X is the Cosine and Y is the Sine of the specified angle. |
