# `GSElement transform:`

*Instance Method*

Applies an affine transform to the element geometry.

## Declaration

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

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

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

## Parameters

- `transform` — The affine transform to apply.

## Discussion

The base implementation transforms the unrounded position. Concrete subclasses can transform additional geometry.

## See Also

### Geometry

- [`GSElement hitTest:tolerance:`](/Core/GlyphsCore/GSElement/hitTest:tolerance:) — Whether the element can be selected at a point within a tolerance.
- [`GSElement getHandleRect:scale:`](/Core/GlyphsCore/GSElement/getHandleRect:scale:) — A handle rectangle centered on a point for an editor scale.

