# `GSPathSegment connectWithSegment:force:miterFactor:newPoint:`

*Instance Method*

is used in makeCorner and offset paths to connect the segments when there is a gap

## Declaration

```swift
func connect(with otherSegment: GSPathSegment, force: Bool, miterFactor: CGFloat, newPoint: UnsafeMutablePointer<NSPoint>?) -> Bool
```

```objc
- (BOOL) connectWithSegment:(GSPathSegment *) otherSegment force:(BOOL) force miterFactor:(CGFloat) miterFactor newPoint:(NSPoint *) newPoint;
```

```python
connectWithSegment_force_miterFactor_newPoint_(otherSegment: GSPathSegment, force: bool, miterFactor: float, newPoint: NSPoint) -> bool
```

## Parameters

- `otherSegment` — otherSegment
- `force` — If YES, it used a less precise geometry
- `miterFactor` — The miter limit, default: 10 (like Illustrator, default in SVG is 4)
- `newPoint` — On return, the position of the connection

## Return Value

Returns YES if a connection was found

