# Vector4.LengthSquared

```csharp
float LengthSquared { get; set; }
```

Squared length of the vector. This is faster than [Vector4.Length](/api/Vector4/Length), and can be used for things like comparing distances, as long as only squared values are used.

Declared in [Vector4](/api/Vector4).
Assembly: `Sandbox.System`.
