# PointTransformer

Artifact: [androidx.graphics:graphics-shapes](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/shapes/Cubic.kt+class:androidx.graphics.shapes.PointTransformer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

*** ** * ** ***


```
public fun interface PointTransformer
```

<br />

*** ** * ** ***

Interface for a function that can transform (rotate/scale/translate/etc.) points.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/collection/FloatFloatPair` | `https://developer.android.com/reference/androidx/graphics/shapes/PointTransformer#transform(kotlin.Float,kotlin.Float)(float x, float y)` Transform the point given the x and y parameters, returning the transformed point as a `https://developer.android.com/reference/androidx/graphics/shapes/TransformResult` |

## Public methods

### transform

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
abstract @NonNull FloatFloatPair transform(float x, float y)
```

Transform the point given the x and y parameters, returning the transformed point as a `https://developer.android.com/reference/androidx/graphics/shapes/TransformResult`