---
title: pointNearToPolyline
status: published
category: primitives
group: Function
author: api
date: 06/23/2023
order: 68
---<Small>Public Function</Small>

Get whether a point is within a certain distance from a polyline.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`A`

</ParametersTableName>
<ParametersTableDescription>

```ts
VecLike
```

The point to check.




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`points`

</ParametersTableName>
<ParametersTableDescription>

```ts
VecLike[]
```

The points that make up the polyline.




</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`distance`

 <Small>(optional)</Small>

</ParametersTableName>
<ParametersTableDescription>

```ts
number
```

The mininum distance that qualifies a hit.




</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
boolean
```

##### References

[VecLike](/gen/primitives/VecLike-type)

