Instance Method
connect(with:force:miterFactor:newPoint:) connectWithSegment:force:miterFactor:newPoint: connectWithSegment_force_miterFactor_newPoint_
is used in makeCorner and offset paths to connect the segments when there is a gap
Declaration
func connect(with otherSegment: GSPathSegment, force: Bool, miterFactor: CGFloat, newPoint: UnsafeMutablePointer<NSPoint>?) -> BoolDeclaration
- (BOOL) connectWithSegment:(GSPathSegment *) otherSegment force:(BOOL) force miterFactor:(CGFloat) miterFactor newPoint:(NSPoint *) newPoint;Declaration
connectWithSegment_force_miterFactor_newPoint_(otherSegment: GSPathSegment, force: bool, miterFactor: float, newPoint: NSPoint) -> boolParameters
otherSegmentotherSegment
forceIf YES, it used a less precise geometry
miterFactorThe miter limit, default: 10 (like Illustrator, default in SVG is 4)
newPointOn return, the position of the connection
Return Value
Returns YES if a connection was found