# FloatSize3d

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/FloatSize3d.kt+class:androidx.xr.runtime.math.FloatSize3d) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
class FloatSize3d
```

<br />

*** ** * ** ***

3D size represented as a Float (e.g., spatial volume dimensions in meters).

## Summary

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#fromVector3(androidx.xr.runtime.math.Vector3)(vector: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3)` Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` from a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` using its components. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#FloatSize3d(kotlin.Float,kotlin.Float,kotlin.Float)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, depth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |

| ### Public functions |
|---|---|
| `operator https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Float)(divisor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Float)`. |
| `operator https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Int)(divisor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Int)`. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#hashCode()()` |
| `operator https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Float)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Float)`. |
| `operator https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Int)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Int)`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#to2d()()` Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` with the same `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#width()` and `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#height()` as this FloatSize3d. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#depth()` the depth of the object |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#height()` the height of the object |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#width()` the width of the object |

## Public companion functions

### fromVector3

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

```
fun fromVector3(vector: Vector3): FloatSize3d
```

Creates a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` from a `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` using its components.

| Parameters |
|---|---|
| `vector: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` | the source `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Vector3` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` instance |

## Public constructors

### FloatSize3d

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

```
FloatSize3d(width: Float = 0.0f, height: Float = 0.0f, depth: Float = 0.0f)
```

## Public functions

### div

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

```
operator fun div(divisor: Float): FloatSize3d
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Float)`.

| Parameters |
|---|---|
| `divisor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the value to divide the width, height, and depth by |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` with the divided dimensions |

### div

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

```
operator fun div(divisor: Int): FloatSize3d
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Int)`.

| Parameters |
|---|---|
| `divisor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the value to divide the width, height, and depth by |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` with the divided dimensions |

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### times

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

```
operator fun times(scalar: Float): FloatSize3d
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Float)`.

| Parameters |
|---|---|
| `scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | the value to multiply the width, height, and depth by |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` with the multiplied dimensions |

### times

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

```
operator fun times(scalar: Int): FloatSize3d
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Int)`.

| Parameters |
|---|---|
| `scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | the value to multiply the width, height, and depth by |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d` with the multiplied dimensions |

### to2d

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

```
fun to2d(): FloatSize2d
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` with the same `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#width()` and `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize3d#height()` as this FloatSize3d.

### toString

```
open fun toString(): String
```

## Public properties

### depth

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

```
val depth: Float
```

the depth of the object

### height

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

```
val height: Float
```

the height of the object

### width

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

```
val width: Float
```

the width of the object