SpatialBiasAlignment.Depth

class SpatialBiasAlignment.Depth : SpatialAlignment.Depth

Creates a weighted alignment that specifies a depth bias.

Summary

Public constructors

Depth(bias: Float)

Public functions

SpatialBiasAlignment.Depth
copy(bias: Float)
open operator Boolean
equals(other: Any?)
open Int
open Int
offset(depth: Int, space: Int)

Provides the depth offset from the origin of the space to the origin of the content.

open String

Public properties

Float

Must be within the range of -1, 1 with -1 being back and 1 being front.

Public constructors

Depth

Added in 1.0.0-alpha04
Depth(bias: Float)
Parameters
bias: Float

Must be within the range of -1, 1 with -1 being back and 1 being front.

Public functions

copy

Added in 1.0.0-alpha04
fun copy(bias: Float = this.bias): SpatialBiasAlignment.Depth

equals

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

hashCode

open fun hashCode(): Int

offset

open fun offset(depth: Int, space: Int): Int

Provides the depth offset from the origin of the space to the origin of the content.

Parameters
depth: Int

The content depth in pixels.

space: Int

The available space in pixels.

See also
depthOffset

toString

open fun toString(): String

Public properties

bias

Added in 1.0.0-alpha04
val biasFloat

Must be within the range of -1, 1 with -1 being back and 1 being front.