---
title: BaseBoxShapeUtil
status: published
category: editor
group: Class
author: api
date: 06/23/2023
order: 6
---Public Class
Table of Contents
- [Properties](#properties)
- [onResize](#BaseBoxShapeUtil-onResize-member)
- [Methods](#methods)
- [getBounds](#BaseBoxShapeUtil-getBounds-member-1)
- [getCenter](#BaseBoxShapeUtil-getCenter-member-1)
- [getOutline](#BaseBoxShapeUtil-getOutline-member-1)
- [hitTestLineSegment](#BaseBoxShapeUtil-hitTestLineSegment-member-1)
- [hitTestPoint](#BaseBoxShapeUtil-hitTestPoint-member-1)
##### Signature
```ts
abstract class BaseBoxShapeUtil<
Shape extends TLBaseBoxShape
> extends ShapeUtil {}
```
##### References
[TLBaseBoxShape](/gen/editor/TLBaseBoxShape-type), [ShapeUtil](/gen/editor/ShapeUtil-class)
---
## Properties
### `onResize` \{#BaseBoxShapeUtil-onResize-member}
Public Property
##### Signature
```ts
onResize: TLOnResizeHandler
```
##### References
[TLOnResizeHandler](/gen/editor/TLOnResizeHandler-type)
---
## Methods
### `getBounds()` \{#BaseBoxShapeUtil-getBounds-member-1}
Public Method
##### Parameters
`shape`
```ts
Shape
```
##### Returns
```ts
Box2d
```
##### References
[Box2d](/gen/primitives/Box2d-class)
---
### `getCenter()` \{#BaseBoxShapeUtil-getCenter-member-1}
Public Method
##### Parameters
`shape`
```ts
Shape
```
##### Returns
```ts
Vec2d
```
##### References
[Vec2d](/gen/primitives/Vec2d-class)
---
### `getOutline()` \{#BaseBoxShapeUtil-getOutline-member-1}
Public Method
##### Parameters
`shape`
```ts
Shape
```
##### Returns
```ts
Vec2d[]
```
##### References
[Vec2d](/gen/primitives/Vec2d-class)
---
### `hitTestLineSegment()` \{#BaseBoxShapeUtil-hitTestLineSegment-member-1}
Public Method
##### Parameters
`shape`
```ts
Shape
```
`A`
```ts
VecLike
```
`B`
```ts
VecLike
```
##### Returns
```ts
boolean
```
##### References
[VecLike](/gen/primitives/VecLike-type)
---
### `hitTestPoint()` \{#BaseBoxShapeUtil-hitTestPoint-member-1}
Public Method
##### Parameters
`shape`
```ts
Shape
```
`point`
```ts
VecLike
```
##### Returns
```ts
boolean
```
##### References
[VecLike](/gen/primitives/VecLike-type)
---