# Line.Trace

```csharp
bool Trace(in Ray ray, float radius, float maxDistance = 3.4028235E+38)
```

Perform a "trace" between this line and given ray. If the 2 lines intersect, returns true.

### Parameters

- `in ray` (`Ray`): The ray to test against.
- `radius` (`float`): Radius of this line, which essentially makes this a capsule, since direct line-to-line intersections are very improbable. Must be above 0.
- `maxDistance` (`float`), default `3.4028235E+38`: Maximum allowed distance from the origin of the ray to the intersection.

### Returns

`bool`: Whether there was an intersection or not.

Declared in [Line](/api/Line).
Assembly: `Sandbox.System`.
