# IntSize2d

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/math/IntSize2d.kt+class:androidx.xr.runtime.math.IntSize2d) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
public final class IntSize2d
```

<br />

*** ** * ** ***

2D size represented as an Int (e.g., panel dimensions in pixels).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#IntSize2d(kotlin.Int,kotlin.Int)(int width, int height)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#getHeight()()` the height of the object |
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#getWidth()()` the width of the object |
| `int` | `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/math/IntSize2d#toString()()` |

## Public constructors

### IntSize2d

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

```
public IntSize2d(int width, int height)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getHeight

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

```
public final int getHeight()
```

the height of the object

### getWidth

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

```
public final int getWidth()
```

the width of the object

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```