> 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

![](/files/-LfzqdT9jvwO-8b5wOtk)

{% 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);
```
