# `GSShape transform:`

*Instance Method*

Applies an affine transformation to the complete shape.

## Declaration

```swift
func transform(_ transform: AffineTransform)
```

```objc
- (void) transform:(NSAffineTransform *) transform;
```

```python
transform_(transform: NSAffineTransform)
```

## See Also

### Geometry

- [`GSShape transform:selection:`](/Core/GlyphsCore/GSShape/transform:selection:) — Applies an affine transformation to selected elements of the shape.
- [`GSShape transformFast:grid:`](/Core/GlyphsCore/GSShape/transformFast:grid:) — Applies an affine transformation and aligns the resulting coordinates to a grid without registering undo or notifying the layer.
- [`GSShape moveWithPoint:`](/Core/GlyphsCore/GSShape/moveWithPoint:) — Translates the complete shape by an offset.
- [`GSShape getPositionsFromShape:`](/Core/GlyphsCore/GSShape/getPositionsFromShape:) — Copies corresponding positions and transformation values from another shape.

