# Function: overlapArea()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [assemblage](https://jonbogaty.com/lifecycle-kit/api/assemblage/readme/index.md) / overlapArea


# Function: overlapArea() {#function-overlaparea}


> **overlapArea**(`a`, `b`): `number`

Defined in: [assemblage/shadow.ts:160](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/assemblage/shadow.ts#L160)

The area two boxes share. Zero when they miss.


## Parameters {#parameters}



### a {#a}


[`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)


### b {#b}


[`Box`](https://jonbogaty.com/lifecycle-kit/api/assemblage/interfaces/box/index.md)


## Returns {#returns}


`number`
