core-ktx / androidx.graphics / android.graphics.PointF / component1

component1

inline operator fun PointF.component1(): Float

Returns the x coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

val (x, y) = myPoint