# PerspectiveClipToWorld(Matrix4x4, Vector3, Vector3)

> Calculate the world space position of a point in clip space. The z component will be used to get the point at the distance z from the viewer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static Vector3 PerspectiveClipToWorld(Matrix4x4 clipToWorld, Vector3 viewPositionWS, Vector3 positionCS)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.3/script-reference/unityengine/matrix4x4)): Clip to world matrix to use.**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): The viewer's position in world space.**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): The position in clip space.

### Returns

| Type                                                              | Description                             |
| ----------------------------------------------------------------- | --------------------------------------- |
| [Vector3](/engine/6000.3/script-reference/unityengine/vector3.md) | The corresponding world space position. |
