# `GSSlope`

*Function*

## Declaration

```swift
func GSSlope(_ P1: NSPoint, _ P2: NSPoint) -> CGFloat
```

```objc
static CGFloat GSSlope(NSPoint P1, NSPoint P2);
```

```python
GSSlope(P1: NSPoint, P2: NSPoint) -> float
```

## See Also

### Angles and Slopes

- [`GSNormalizeAngleRAD`](/Core/GlyphsCore/GSNormalizeAngleRAD) — Returns a value in the interval [0, 2π).
- [`GSNormalizeAngleDEG`](/Core/GlyphsCore/GSNormalizeAngleDEG) — Returns a value in the interval [0, 360).
- [`GSNormalizeAngleDirection`](/Core/GlyphsCore/GSNormalizeAngleDirection) — Returns a version of the angle that matches the given direction.

