# sqrMagnitude

> Returns the squared length of this vector (Read Only).

## Definition

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

```csharp
public readonly int sqrMagnitude { get; }
```

### Remarks

Calculating the squared magnitude instead of the [Vector2Int.magnitude](/engine/6000.3/script-reference/unityengine/vector2int/magnitude.md) is much faster.

Often if you are comparing magnitudes of two vectors you can just compare their squared magnitudes.

Additional Resources: [Vector2Int.magnitude](/engine/6000.3/script-reference/unityengine/vector2int/magnitude.md).
