# PointTransformer

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/graphics/shapes/PointTransformer "View this page in Java")
Common/AllAndroid/JVM
  - Cmn  

  ```
  fun interface PointTransformer
  ```

*** ** * ** ***

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

## Summary

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [FloatFloatPair](https://developer.android.com/reference/kotlin/androidx/collection/FloatFloatPair) | [transform](https://developer.android.com/reference/kotlin/androidx/graphics/shapes/PointTransformer#transform(kotlin.Float,kotlin.Float))`(x: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, y: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Transform the point given the x and y parameters, returning the transformed point as a[TransformResult](https://developer.android.com/reference/kotlin/androidx/graphics/shapes/TransformResult) | Cmn |

## Public functions

### transform

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

```
fun transform(x: Float, y: Float): FloatFloatPair
```

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