# `GSComponent intersects:`

*Instance Method*

Whether the closed-path representation crosses that of another component.

## Declaration

```swift
func intersects(_ otherComponent: GSComponent) -> Bool
```

```objc
- (BOOL) intersects:(GSComponent *) otherComponent;
```

```python
intersects_(otherComponent: GSComponent) -> bool
```

## Discussion

Open paths and containment without an outline crossing are not considered intersections.

## See Also

### Geometry

- [`GSComponent bounds`](/Core/GlyphsCore/GSComponent/bounds) — The bounds of the transformed component representation.
- [`GSComponent intersectsDontCheckBounds:`](/Core/GlyphsCore/GSComponent/intersectsDontCheckBounds:) — Whether the closed-path representation crosses that of another component without first comparing their bounds.
- [`GSComponent intersectionsWithLineFrom:to:`](/Core/GlyphsCore/GSComponent/intersectionsWithLineFrom:to:) — Intersections between the transformed component representation and a line segment.

