---
title: "init(scale:offset:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/lineartransformer/init(scale:offset:)"
---

# init(scale:offset:)

Creates a linear transformer.

## Declaration

```swift
init(scale: Element, offset: Element)
```

## Parameters

- `scale`: The amount to be scaled.
- `offset`: The amount to be offset after scaling.
