---
title: pointInRect
status: published
category: primitives
group: Function
author: api
date: 06/23/2023
order: 66
---Public Function
Get whether a point is inside of a rectangle.
##### Parameters
`A`
```ts
VecLike
```
The point to check.
`point`
```ts
VecLike
```
The rectangle's top left point as [x, y].
`size`
```ts
VecLike
```
The rectangle's size as [width, height].
##### Returns
```ts
boolean
```
##### References
[VecLike](/gen/primitives/VecLike-type)