# xMin

> The minimum x-coordinate value of the RectInt. This value is inclusive.

## Definition

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

```csharp
public int xMin { readonly get; set; }
```

### Remarks

The [RectInt.width](/engine/7000.0/script-reference/unityengine/rectint/width.md) is the difference between [RectInt.xMax](/engine/7000.0/script-reference/unityengine/rectint/xmax.md) and `xMin`. If you set a `xMin` greater than the current [RectInt.xMax](/engine/7000.0/script-reference/unityengine/rectint/xmax.md), then [RectInt.width](/engine/7000.0/script-reference/unityengine/rectint/width.md) becomes negative. [RectInt.xMax](/engine/7000.0/script-reference/unityengine/rectint/xmax.md) and `xMin` values are normalized prior to being returned such that `xMin` is always the smallest of the two values and `xMax` the largest. For example, a `RectInt` `r` created as `RectInt r = new RectInt(0, 0, 10, 10);` and later assigned `r.xMin = 15` returns [RectInt.width](/engine/7000.0/script-reference/unityengine/rectint/width.md) of -5, [RectInt.xMin](/engine/7000.0/script-reference/unityengine/rectint/xmin.md) of 10 and [RectInt.xMax](/engine/7000.0/script-reference/unityengine/rectint/xmax.md) of 15. The `xMin` value is equal to the smallest x-coordinate contained in the `RectInt`. For example, a `RectInt` spanning x-coordinates 0–3 has an `xMin` of 0.
