# Double2

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Double2

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/renderscript/Double2 "View this page in Java")  

```
open class Double2
```

|---|--------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                               ||
| ↳ | [android.renderscript.Double2](https://developer.android.com/reference/kotlin/android/renderscript/Double2#) |

*** ** * ** ***

| **This class was deprecated in API level 31.**
|
| Renderscript has been deprecated in API level 31. Please refer to the[migration guide](https://developer.android.com/guide/topics/renderscript/migration-guide)for the proposed alternatives.

Vector version of the basic double type. Provides two double fields packed.

## Summary

|                                                                                                                                                     Public constructors                                                                                                                                                      ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Double2](https://developer.android.com/reference/kotlin/android/renderscript/Double2#Double2())`()` <br />                                                                                                                                                                                                               |
| [Double2](https://developer.android.com/reference/kotlin/android/renderscript/Double2#Double2(kotlin.Double,%20kotlin.Double))`(`x:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `y:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` <br /> |

|                                                                                        Properties                                                                                         ||
|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [x](https://developer.android.com/reference/kotlin/android/renderscript/Double2#x:kotlin.Double) <br /> |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [y](https://developer.android.com/reference/kotlin/android/renderscript/Double2#y:kotlin.Double) <br /> |

## Public constructors

### Double2

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Double2()
```  

### Double2

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Double2(
    x: Double, 
    y: Double)
```

## Properties

### x

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var x: Double
```

**Deprecated:** *Deprecated in Java.*  

### y

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var y: Double
```

**Deprecated:** *Deprecated in Java.*