# `GSShape transformFast:grid:`

*Instance Method*

Applies an affine transformation and aligns the resulting coordinates to a grid without registering undo or notifying the layer.

## Declaration

```swift
func transformFast(_ transform: AffineTransform, grid: GSGridSettings)
```

```objc
- (void) transformFast:(NSAffineTransform *) transform grid:(GSGridSettings) grid;
```

```python
transformFast_grid_(transform: NSAffineTransform, grid: GSGridSettings)
```

## Parameters

- `grid` — The grid settings used to align the coordinates.

## See Also

### Geometry

- [`GSShape transform:`](/Core/GlyphsCore/GSShape/transform:) — Applies an affine transformation to the complete shape.
- [`GSShape transform:selection:`](/Core/GlyphsCore/GSShape/transform:selection:) — Applies an affine transformation to selected elements of the shape.
- [`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.

