# `GSAngleToSlope`

*Function*

convert and angle (CCV from 12 o’clock) to run/rise as stored in the hhea table

## Declaration

```swift
func GSAngleToSlope(_ angle: CGFloat, _ run: UnsafeMutablePointer<Int32>, _ rise: UnsafeMutablePointer<Int32>) -> Bool
```

```objc
BOOL GSAngleToSlope(CGFloat angle, int *run, int *rise);
```

```python
GSAngleToSlope(angle: float, run: int, rise: int) -> bool
```

## See Also

### Numeric Conversion and Rotation

- [`GSFloatToFraction`](/Core/GlyphsCore/GSFloatToFraction)
- [`GSAngleFromString`](/Core/GlyphsCore/GSAngleFromString) — The angle of run/rise. This can be used to write the italic angle so the angle is positive CCV from 12 o’clock
- [`GSRotatePointAroundCenter`](/Core/GlyphsCore/GSRotatePointAroundCenter)
- [`GSRotatePoint`](/Core/GlyphsCore/GSRotatePoint)

