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

Get whether a point is inside of a rectangle.


##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`A`

</ParametersTableName>
<ParametersTableDescription>

```ts
VecLike
```

The point to check.




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

`point`

</ParametersTableName>
<ParametersTableDescription>

```ts
VecLike
```

The rectangle's top left point as [x, y].




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

`size`

</ParametersTableName>
<ParametersTableDescription>

```ts
VecLike
```

The rectangle's size as [width, height].




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

##### Returns


```ts
boolean
```

##### References

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

