> For the complete documentation index, see [llms.txt](https://gitbook.testingwaters.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.testingwaters.in/patterns/vector-field.md).

# Vector Field

![](https://1430428134-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ld8QK19sjP1I9rhLouo%2F-LfzqYLclussRYOek-lJ%2F-LfzqdT9jvwO-8b5wOtk%2FvectorField.png?alt=media\&token=aa4068c6-b1ee-42bf-b24a-4f5d948a25f7)

{% file src="/files/-LfzrOJlOEUTU975FaKP" %}

```d
v = Vector.ByCoordinates
(0.2*p.Y,1);

l = Math.RemapRange(v.Length,3,5);
f = List.Clean(
Line.ByStartPointDirectionLength
(p,v,l),false);
```

```d
v = Vector.ByCoordinates
(-p.Y,-p.X);

l = Math.RemapRange(v.Length,3,5);
f = List.Clean(
Line.ByStartPointDirectionLength
(p,v,l),false);
```

```d
v = Vector.ByCoordinates
(-p.Y,p.X);

l = Math.RemapRange(v.Length,3,5);
f = List.Clean
(Line.ByStartPointDirectionLength
(p,v,l),false);
```

```d
v = Vector.ByCoordinates
(p.X,p.Y);

l = Math.RemapRange(v.Length,3,5);
f = List.Clean
(Line.ByStartPointDirectionLength
(p,v,l),false);
```
