# 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)

*** ** * ** ***


```
public final class FloatSize3d
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Float)(float divisor)` Returns a new `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Float)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Int)(int divisor)` Returns a new `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` that's uniformly divided by the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#div(kotlin.Int)`. |
| `boolean` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#fromVector3(androidx.xr.runtime.math.Vector3)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector3 vector)` Creates a `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` from a `https://developer.android.com/reference/androidx/xr/runtime/math/Vector3` using its components. |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#getDepth()()` the depth of the object |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#getHeight()()` the height of the object |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#getWidth()()` the width of the object |
| `int` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#hashCode()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Float)(float scalar)` Returns a new `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Float)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Int)(int scalar)` Returns a new `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` that's uniformly multiplied by the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#times(kotlin.Int)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#to2d()()` Returns a new `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` with the same `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#width()` and `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d#height()` as this FloatSize3d. |
| `@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/FloatSize3d#toString()()` |

## Public constructors

### FloatSize3d

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

```
public FloatSize3d(float width, float height, float depth)
```

## Public methods

### div

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

```
public final @NonNull FloatSize3d div(float divisor)
```

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

| Parameters |
|---|---|
| `float divisor` | the value to divide the width, height, and depth by |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/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)

```
public final @NonNull FloatSize3d div(int divisor)
```

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

| Parameters |
|---|---|
| `int divisor` | the value to divide the width, height, and depth by |

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

### equals

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

### fromVector3

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

```
public static final @NonNull FloatSize3d fromVector3(@NonNull Vector3 vector)
```

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

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

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

### getDepth

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

```
public final float getDepth()
```

the depth of the object

### getHeight

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

```
public final float 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 float getWidth()
```

the width of the object

### hashCode

```
public int hashCode()
```

### times

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

```
public final @NonNull FloatSize3d times(float scalar)
```

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

| Parameters |
|---|---|
| `float scalar` | the value to multiply the width, height, and depth by |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/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)

```
public final @NonNull FloatSize3d times(int scalar)
```

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

| Parameters |
|---|---|
| `int scalar` | the value to multiply the width, height, and depth by |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | a new `https://developer.android.com/reference/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)

```
public final @NonNull FloatSize2d to2d()
```

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

### toString

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