Android Developers Develop Reference Added in API level 11Deprecated in API level 31 Float2 Kotlin |Java open class Float2 kotlin.Any ↳ android.renderscript.Float2 Vector version of the basic float type. Provides two float fields packed. Summary Public constructors Float2() Float2(x: Float, y: Float) Properties Float x Float y Public constructors Float2 Added in API level 11 Float2() Float2 Added in API level 11 Float2( x: Float, y: Float) Properties x Added in API level 11 var x: Float Deprecated: Deprecated in Java. y Added in API level 11 var y: Float Deprecated: Deprecated in Java.