# Vector4

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

*** ** * ** ***


```
public final class Vector4
```

<br />

*** ** * ** ***

Four-dimensional position in space.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#One()` Vector with all components set to one. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#Zero()` Vector with all components set to zero. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#Vector4(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 other)` Creates a new vector with the same values as the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#(androidx.xr.runtime.math.Vector4)` vector. |
| `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#Vector4(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(float x, float y, float z, float w)` |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#abs(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector)` Returns the absolute values of each component of the vector. |
| `static final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#angleBetween(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector1, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector2)` Returns the angle between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#angleBetween(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#angleBetween(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` in degrees. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#clamp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 min, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 max)` Returns a new vector with components clamped between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#clamp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#clamp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#copy(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(float x, float y, float z, float w)` Returns a copy of the vector. |
| `static final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#distance(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector1, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector2)` Returns the distance between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#distance(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#distance(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#div(kotlin.Float)(float c)` Returns a new vector with this vector divided by a scalar amount. |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#dot(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 other)` Returns the dot product of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#dot(androidx.xr.runtime.math.Vector4)` vector. |
| `boolean` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Returns true if this vector is equal to the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#equals(kotlin.Any)`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#fromValue(kotlin.Float)(float value)` Creates a new vector with all components set to `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#fromValue(kotlin.Float)`. |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getLength()()` The length of the vector. |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getLengthSquared()()` The squared length of the vector. |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getW()()` the w component of the vector |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getX()()` the x component of the vector |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getY()()` the y component of the vector |
| `final float` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#getZ()()` the z component of the vector |
| `int` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#hashCode()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#inverse()()` Returns the component-wise multiplicative inverse of this vector. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 start, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 end, float ratio)` Returns a new vector linearly interpolated between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)` by `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#max(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 a, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 b)` Returns the maximum of each component of the two vectors. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#min(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 a, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 b)` Returns the minimum of each component of the two vectors. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#minus(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 other)` Returns a new vector with the difference of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#minus(androidx.xr.runtime.math.Vector4)` vector. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#plus(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 other)` Returns a new vector with the sum of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#plus(androidx.xr.runtime.math.Vector4)` vector. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#scale(androidx.xr.runtime.math.Vector4)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 other)` Returns a new vector by component-wise multiplying this vector by `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#scale(androidx.xr.runtime.math.Vector4)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#times(kotlin.Float)(float c)` Get a new vector multiplied by a scalar amount. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#toNormalized()()` Returns the normalized version of this vector. |
| `@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/Vector4#toString()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4` | `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#unaryMinus()()` Negates this vector. |

## Public fields

### One

```
public static final @NonNull Vector4 One
```

Vector with all components set to one.

### Zero

```
public static final @NonNull Vector4 Zero
```

Vector with all components set to zero.

## Public constructors

### Vector4

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

```
public Vector4(@NonNull Vector4 other)
```

Creates a new vector with the same values as the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#(androidx.xr.runtime.math.Vector4)` vector.

### Vector4

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

```
public Vector4(float x, float y, float z, float w)
```

## Public methods

### abs

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

```
public static final @NonNull Vector4 abs(@NonNull Vector4 vector)
```

Returns the absolute values of each component of the vector.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector` | the vector to get the absolute values of |

### angleBetween

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

```
public static final float angleBetween(@NonNull Vector4 vector1, @NonNull Vector4 vector2)
```

Returns the angle between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#angleBetween(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#angleBetween(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` in degrees. The result is never greater than 180 degrees.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector1` | the first vector |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector2` | the second vector |

### clamp

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

```
public final @NonNull Vector4 clamp(@NonNull Vector4 min, @NonNull Vector4 max)
```

Returns a new vector with components clamped between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#clamp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#clamp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 min` | the minimum clamp values |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 max` | the maximum clamp values |

### copy

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

```
public final @NonNull Vector4 copy(float x, float y, float z, float w)
```

Returns a copy of the vector.

| Parameters |
|---|---|
| `float x` | the new x value for the copied vector |
| `float y` | the new y value for the copied vector |
| `float z` | the new z value for the copied vector |
| `float w` | the new w value for the copied vector |

### distance

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

```
public static final float distance(@NonNull Vector4 vector1, @NonNull Vector4 vector2)
```

Returns the distance between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#distance(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#distance(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector1` | the first vector |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 vector2` | the second vector |

### div

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

```
public final @NonNull Vector4 div(float c)
```

Returns a new vector with this vector divided by a scalar amount.

| Parameters |
|---|---|
| `float c` | the scalar to divide by |

### dot

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

```
public final float dot(@NonNull Vector4 other)
```

Returns the dot product of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#dot(androidx.xr.runtime.math.Vector4)` vector.

### equals

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

Returns true if this vector is equal to the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#equals(kotlin.Any)`.

### fromValue

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

```
public static final @NonNull Vector4 fromValue(float value)
```

Creates a new vector with all components set to `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#fromValue(kotlin.Float)`.

### getLength

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

```
public final float getLength()
```

The length of the vector.

### getLengthSquared

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

```
public final float getLengthSquared()
```

The squared length of the vector.

### getW

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

```
public final float getW()
```

the w component of the vector

### getX

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

```
public final float getX()
```

the x component of the vector

### getY

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

```
public final float getY()
```

the y component of the vector

### getZ

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

```
public final float getZ()
```

the z component of the vector

### hashCode

```
public int hashCode()
```

### inverse

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

```
public final @NonNull Vector4 inverse()
```

Returns the component-wise multiplicative inverse of this vector.

### lerp

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

```
public static final @NonNull Vector4 lerp(@NonNull Vector4 start, @NonNull Vector4 end, float ratio)
```

Returns a new vector linearly interpolated between `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)` and `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)` by `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)`.

If `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4.Companion#lerp(androidx.xr.runtime.math.Vector4,androidx.xr.runtime.math.Vector4,kotlin.Float)` is outside of the range `[0, 1]`, the returned vector will be extrapolated.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 start` | the starting vector |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 end` | the ending vector |
| `float ratio` | the interpolation ratio |

### max

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

```
public static final @NonNull Vector4 max(@NonNull Vector4 a, @NonNull Vector4 b)
```

Returns the maximum of each component of the two vectors.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 a` | the first vector |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 b` | the second vector |

### min

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

```
public static final @NonNull Vector4 min(@NonNull Vector4 a, @NonNull Vector4 b)
```

Returns the minimum of each component of the two vectors.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 a` | the first vector |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Vector4 b` | the second vector |

### minus

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

```
public final @NonNull Vector4 minus(@NonNull Vector4 other)
```

Returns a new vector with the difference of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#minus(androidx.xr.runtime.math.Vector4)` vector.

### plus

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

```
public final @NonNull Vector4 plus(@NonNull Vector4 other)
```

Returns a new vector with the sum of this vector and the `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#plus(androidx.xr.runtime.math.Vector4)` vector.

### scale

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

```
public final @NonNull Vector4 scale(@NonNull Vector4 other)
```

Returns a new vector by component-wise multiplying this vector by `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#scale(androidx.xr.runtime.math.Vector4)`.

### times

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

```
public final @NonNull Vector4 times(float c)
```

Get a new vector multiplied by a scalar amount.

| Parameters |
|---|---|
| `float c` | the scalar to multiply by |

### toNormalized

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

```
public final @NonNull Vector4 toNormalized()
```

Returns the normalized version of this vector. A zero-length vector has no direction to normalize and returns `https://developer.android.com/reference/androidx/xr/runtime/math/Vector4#Zero()` rather than a vector of NaN components.

### toString

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

### unaryMinus

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

```
public final @NonNull Vector4 unaryMinus()
```

Negates this vector.