# ShapePath.PathLineOperation

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/shape/ShapePath.java)

*** ** * ** ***


```
public class ShapePath.PathLineOperation extends ShapePath.PathOperation
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [com.google.android.material.shape.ShapePath.PathOperation](https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathOperation) ||
|   | ↳ | [com.google.android.material.shape.ShapePath.PathLineOperation](https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathLineOperation) |

*** ** * ** ***

Straight line operation.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathLineOperation#PathLineOperation()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathLineOperation#applyToPath(Matrix,Path)(Matrix transform, Path path)` Applies the given `transform` to the provided `path`. |

| ### Inherited fields |
|---|
| From [com.google.android.material.shape.ShapePath.PathOperation](https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathOperation) |---|---| | `final Matrix` | `https://developer.android.com/reference/com/google/android/material/shape/ShapePath.PathOperation#matrix()` A usable Matrix object for transformations. | |

## Public constructors

### PathLineOperation

```
public PathLineOperation()
```

## Public methods

### applyToPath

```
public void applyToPath(Matrix transform, Path path)
```

Applies the given `transform` to the provided `path`.