# `GSPath enclosesPath:`

*Instance Method*

Whether the path encloses another path.

## Declaration

```swift
func encloses(_ other: GSPath) -> Bool
```

```objc
- (BOOL) enclosesPath:(GSPath *) other;
```

```python
enclosesPath_(other: GSPath) -> bool
```

## See Also

### Geometry

- [`GSPath bounds`](/Core/GlyphsCore/GSPath/bounds) — The bounds of the path.
- [`GSPath fastBounds`](/Core/GlyphsCore/GSPath/fastBounds) — The bounds of the path nodes.
- [`GSPath area`](/Core/GlyphsCore/GSPath/area) — The unsigned area enclosed by the path.
- [`GSPath length`](/Core/GlyphsCore/GSPath/length) — The length of all path segments.
- [`GSPath intersectionsWithLineFrom:to:`](/Core/GlyphsCore/GSPath/intersectionsWithLineFrom:to:) — Intersections between the path and a line segment.

