Vector3

data class Vector3
kotlin.Any
   ↳ androidx.ui.vectormath64.Vector3

Summary

Public constructors

<init>(v: Vector2, z: Float = 0.0f)

<init>(x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f)

Public methods

operator Vector3
dec()

operator Vector3
div(v: Float)

operator Vector3

operator Vector3

operator Float

operator Vector2
get(index1: VectorComponent, index2: VectorComponent)

operator Vector3
get(index1: VectorComponent, index2: VectorComponent, index3: VectorComponent)

operator Float
get(index: Int)

operator Vector2
get(index1: Int, index2: Int)

operator Vector3
get(index1: Int, index2: Int, index3: Int)

operator Vector3
inc()

operator Vector3

operator Vector3

operator Vector3

operator Vector3
plus(v: Float)

operator Vector3

operator Vector3

operator Unit
set(index: Int, v: Float)

operator Unit
set(index1: Int, index2: Int, v: Float)

operator Unit
set(index1: Int, index2: Int, index3: Int, v: Float)

operator Unit
set(index: VectorComponent, v: Float)

operator Unit
set(index1: VectorComponent, index2: VectorComponent, v: Float)

operator Unit
set(index1: VectorComponent, index2: VectorComponent, index3: VectorComponent, v: Float)

operator Vector3

operator Vector3

operator Vector3

Vector3
transform(block: (Float) -> Float)

operator Vector3

Extension functions

From androidx.ui.vectormath64
Vector3
Vector3.coerceIn(min: Float, max: Float)

Vector3

infix Vector3

Properties

Float

Float

Float

Float

Vector2

Vector3

Float

Vector2

Vector3

Float

List<Float>

Float

Vector2

Vector3

Float

Float

Public constructors

<init>

Vector3(
    v: Vector2,
    z: Float = 0.0f)

<init>

Vector3(v: Vector3)

<init>

Vector3(
    x: Float = 0.0f,
    y: Float = 0.0f,
    z: Float = 0.0f)

Public methods

dec

operator fun dec(): Vector3

div

inline operator fun div(v: Float): Vector3

div

inline operator fun div(v: Vector2): Vector3

div

inline operator fun div(v: Vector3): Vector3

get

operator fun get(index: VectorComponent): Float

get

operator fun get(
    index1: VectorComponent,
    index2: VectorComponent
): Vector2

get

operator fun get(
    index1: VectorComponent,
    index2: VectorComponent,
    index3: VectorComponent
): Vector3

get

operator fun get(index: Int): Float

get

operator fun get(
    index1: Int,
    index2: Int
): Vector2

get

operator fun get(
    index1: Int,
    index2: Int,
    index3: Int
): Vector3

inc

operator fun inc(): Vector3

minus

inline operator fun minus(v: Float): Vector3

minus

inline operator fun minus(v: Vector2): Vector3

minus

inline operator fun minus(v: Vector3): Vector3

plus

inline operator fun plus(v: Float): Vector3

plus

inline operator fun plus(v: Vector2): Vector3

plus

inline operator fun plus(v: Vector3): Vector3

set

operator fun set(
    index: Int,
    v: Float
): Unit

set

operator fun set(
    index1: Int,
    index2: Int,
    v: Float
): Unit

set

operator fun set(
    index1: Int,
    index2: Int,
    index3: Int,
    v: Float
): Unit

set

operator fun set(
    index: VectorComponent,
    v: Float
): Unit

set

operator fun set(
    index1: VectorComponent,
    index2: VectorComponent,
    v: Float
): Unit

set

operator fun set(
    index1: VectorComponent,
    index2: VectorComponent,
    index3: VectorComponent,
    v: Float
): Unit

times

inline operator fun times(v: Float): Vector3

times

inline operator fun times(v: Vector2): Vector3

times

inline operator fun times(v: Vector3): Vector3

transform

inline fun transform(block: (Float) -> Float): Vector3

unaryMinus

operator fun unaryMinus(): Vector3

Properties

b

inline var b: Float

g

inline var g: Float

p

inline var p: Float

r

inline var r: Float

rg

inline var rg: Vector2

rgb

inline var rgb: Vector3

s

inline var s: Float

st

inline var st: Vector2

stp

inline var stp: Vector3

t

inline var t: Float

v3storage

inline val v3storage: List<Float>

x

var x: Float

xy

inline var xy: Vector2

xyz

inline var xyz: Vector3

y

var y: Float

z

var z: Float