# GetInterpolatedHeight(float, float)

> Gets an interpolated height at a point x,y. The x and y coordinates are clamped to [0, 1].

## Definition

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

```csharp
public float GetInterpolatedHeight(float x, float y)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): X coordinate of the point in the range of \[0, 1].**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Y coordinate of the point in the range of \[0, 1].

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |
