# VectorExtensionMethods.IntersectWithLine examples

Examples for [IntersectWithLine](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.vectorextensionmethods/intersectwithline.md) in Grasshopper2.Extensions.VectorExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
bool result = plane.IntersectWithLine(line, domain0, domain1, out double t);

// As a static method
result = VectorExtensionMethods.IntersectWithLine(plane, line, domain0, domain1, out t);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
result, t = plane.IntersectWithLine(line, domain0, domain1)

# As a static method
result, t = Grasshopper2.Extensions.VectorExtensionMethods.IntersectWithLine(plane, line, domain0, domain1)
```
