# `GSSquareDistance`

*Function*

## Declaration

```swift
func GSSquareDistance(_ a: NSPoint, _ b: NSPoint) -> Double
```

```objc
static double GSSquareDistance(NSPoint a, NSPoint b);
```

```python
GSSquareDistance(a: NSPoint, b: NSPoint) -> float
```

## See Also

### Vectors and Distances

- [`GSUnitVectorFromTo`](/Core/GlyphsCore/GSUnitVectorFromTo)
- [`GSUnitVectorFromAngle`](/Core/GlyphsCore/GSUnitVectorFromAngle)
- [`GSNormalVector1`](/Core/GlyphsCore/GSNormalVector1)
- [`GSNormalVector2`](/Core/GlyphsCore/GSNormalVector2)
- [`GSSkewVectorRelativeToItself`](/Core/GlyphsCore/GSSkewVectorRelativeToItself)
- [`GSDistance`](/Core/GlyphsCore/GSDistance)
- [`GSLengthOfVector`](/Core/GlyphsCore/GSLengthOfVector)
- [`GSDistanceN`](/Core/GlyphsCore/GSDistanceN)

