# PathContainment

Represents a path and the paths it contains.

A path is contained within another path if every point on it lies inside, and it does not cross the other path.

## Constructors

PathContainment(path)→[PathContainment](https://cuttle.xyz/learn/reference/PathContainment)

`path`

`[Path](https://cuttle.xyz/learn/reference/Path)`

## Properties

.contained[PathContainment](https://cuttle.xyz/learn/reference/PathContainment)\[\]

Paths contained within this containment.

.path[Path](https://cuttle.xyz/learn/reference/Path)

The boundary of the containment.

.box([BoundingBox](https://cuttle.xyz/learn/reference/BoundingBox) | undefined)

The tight bounding box of the containment boundary.

## Methods inherited from [Containment](https://cuttle.xyz/learn/reference/Containment)

.maximumDepth()→number

Returns the maximum depth of this containment. Depth indicates how deeply nested the hierarchy is. If depth is zero, nothing is contained within this containment.

.allPaths()→[Path](https://cuttle.xyz/learn/reference/Path)\[\]

Returns all paths contained within this containment and its contained, recursively.