# `GSClamp`

*Function*

## Declaration

```swift
func GSClamp(_ v: CGFloat, _ a: CGFloat, _ b: CGFloat) -> CGFloat
```

```objc
CGFloat GSClamp(CGFloat v, CGFloat a, CGFloat b);
```

```python
GSClamp(v: float, a: float, b: float) -> float
```

## See Also

### General Geometry

- [`GSAngleOfVector`](/Core/GlyphsCore/GSAngleOfVector)
- [`GSAngleBetweenVectors`](/Core/GlyphsCore/GSAngleBetweenVectors)
- [`GSSlantPointAroundY`](/Core/GlyphsCore/GSSlantPointAroundY)
- [`GSCircleSegmentFromPointsAndTangents`](/Core/GlyphsCore/GSCircleSegmentFromPointsAndTangents)
- [`GSOffsetLine`](/Core/GlyphsCore/GSOffsetLine)
- [`GSDot`](/Core/GlyphsCore/GSDot)
- [`GSAreaOfTriangle`](/Core/GlyphsCore/GSAreaOfTriangle)
- [`GSPointIsLeftOfLine`](/Core/GlyphsCore/GSPointIsLeftOfLine)
- [`GSLeftRayHitsLine`](/Core/GlyphsCore/GSLeftRayHitsLine)
- [`GSLeftRayHitsSegment`](/Core/GlyphsCore/GSLeftRayHitsSegment)
- [`GSLeftRayHitsCubic`](/Core/GlyphsCore/GSLeftRayHitsCubic)
- [`GSLeftRayHitsQuadraticSpline`](/Core/GlyphsCore/GSLeftRayHitsQuadraticSpline)
- [`GSMiddlePointLine`](/Core/GlyphsCore/GSMiddlePointLine)
- [`GSMiddlePointCubic`](/Core/GlyphsCore/GSMiddlePointCubic)
- [`GSCheckColinearLines`](/Core/GlyphsCore/GSCheckColinearLines)

