NormalizedPoint3D

@Stable
class NormalizedPoint3D(val x: Float, val y: Float, val z: Float)

A normalized 3D point in view's local coordinator space. For each dimension:

  • 0 represents start of the dimension.

  • 1 represents end of the dimension.

For example, you can use 0.5 to represents center for each dimension.

You also can use built-in values provides by SpatialUI like TopCenterBottom etc.

A point outside the range 0,1 means a point outside of the view

Constructors

Link copied to clipboard
constructor(x: Float, y: Float, z: Float)

Types

Link copied to clipboard
object Companion

Holds built-in constant NormalizedPoint3D instances

Properties

Link copied to clipboard
val x: Float

The normalized distance relative to origin point along x-axis.

Link copied to clipboard
val y: Float

The normalized distance relative to origin point along y-axis.

Link copied to clipboard
val z: Float

The normalized distance relative to origin point along z-axis.

Functions

Link copied to clipboard
fun copy(x: Float = this.x, y: Float = this.y, z: Float = this.z): NormalizedPoint3D

Returns a copy of this Point3D instance optionally overriding the x, y or z parameter

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String