# `GSPath length`

*Instance Method*

The length of all path segments.

## Declaration

```swift
func length() -> CGFloat
```

```objc
- (CGFloat) length;
```

```python
length() -> float
```

## 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 enclosesPath:`](/Core/GlyphsCore/GSPath/enclosesPath:) — Whether the path encloses another path.
- [`GSPath intersectionsWithLineFrom:to:`](/Core/GlyphsCore/GSPath/intersectionsWithLineFrom:to:) — Intersections between the path and a line segment.

