# GetPoint(float)

> Get a point that lies a given distance along a ray.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Vector2 GetPoint(float distance)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Distance of the desired point along the path of the ray.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector2](/engine/6000.0/script-reference/unityengine/vector2.md) |             |

### Remarks

The distance is measured away from the ray's origin along its direction.

Additional Resources: [Ray2D.origin](/engine/6000.0/script-reference/unityengine/ray2d/origin.md), [Ray2D.direction](/engine/6000.0/script-reference/unityengine/ray2d/direction.md).
