Vector4

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

Summary

Public constructors

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

<init>(v: Vector3, w: Float = 0.0f)

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

Public methods

Unit

operator Vector4
dec()

operator Vector4
div(v: Float)

operator Vector4

operator Vector4

operator Vector4

operator Float

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

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

operator Vector4
get(index1: VectorComponent, index2: VectorComponent, index3: VectorComponent, index4: VectorComponent)

operator Float
get(index: Int)

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

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

operator Vector4
get(index1: Int, index2: Int, index3: Int, index4: Int)

operator Vector4
inc()

operator Vector4

operator Vector4

operator Vector4

operator Vector4

operator Vector4
plus(v: Float)

operator Vector4

operator Vector4

operator Vector4

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(index1: Int, index2: Int, index3: Int, index4: 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 Unit
set(index1: VectorComponent, index2: VectorComponent, index3: VectorComponent, index4: VectorComponent, v: Float)

operator Vector4

operator Vector4

operator Vector4

operator Vector4

String

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

operator Vector4

Extension functions

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

Vector4

Properties

Float

Float

Float

Float

Float

Float

Vector2

Vector3

Vector4

Float

Vector2

Vector3

Vector4

Float

List<Float>

Float

Float

Vector2

Vector3

Vector4

Float

Float

Public constructors

<init>

Vector4(
    v: Vector2,
    z: Float = 0.0f,
    w: Float = 0.0f)

<init>

Vector4(
    v: Vector3,
    w: Float = 0.0f)

<init>

Vector4(v: Vector4)

<init>

Vector4(
    x: Float = 0.0f,
    y: Float = 0.0f,
    z: Float = 0.0f,
    w: Float = 0.0f)

Public methods

assignFromStorage

fun assignFromStorage(storage: List<Float>): Unit

dec

operator fun dec(): Vector4

div

inline operator fun div(v: Float): Vector4

div

inline operator fun div(v: Vector2): Vector4

div

inline operator fun div(v: Vector3): Vector4

div

inline operator fun div(v: Vector4): Vector4

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(
    index1: VectorComponent,
    index2: VectorComponent,
    index3: VectorComponent,
    index4: VectorComponent
): Vector4

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

get

operator fun get(
    index1: Int,
    index2: Int,
    index3: Int,
    index4: Int
): Vector4

inc

operator fun inc(): Vector4

minus

inline operator fun minus(v: Float): Vector4

minus

inline operator fun minus(v: Vector2): Vector4

minus

inline operator fun minus(v: Vector3): Vector4

minus

inline operator fun minus(v: Vector4): Vector4

plus

inline operator fun plus(v: Float): Vector4

plus

inline operator fun plus(v: Vector2): Vector4

plus

inline operator fun plus(v: Vector3): Vector4

plus

inline operator fun plus(v: Vector4): Vector4

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(
    index1: Int,
    index2: Int,
    index3: Int,
    index4: 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

set

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

times

inline operator fun times(v: Float): Vector4

times

inline operator fun times(v: Vector2): Vector4

times

inline operator fun times(v: Vector3): Vector4

times

inline operator fun times(v: Vector4): Vector4

toString

fun toString(): String

transform

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

unaryMinus

operator fun unaryMinus(): Vector4

Properties

a

inline var a: Float

b

inline var b: Float

g

inline var g: Float

p

inline var p: Float

q

inline var q: Float

r

inline var r: Float

rg

inline var rg: Vector2

rgb

inline var rgb: Vector3

rgba

inline var rgba: Vector4

s

inline var s: Float

st

inline var st: Vector2

stp

inline var stp: Vector3

stpq

inline var stpq: Vector4

t

inline var t: Float

v4storage

inline val v4storage: List<Float>

w

var w: Float

x

var x: Float

xy

inline var xy: Vector2

xyz

inline var xyz: Vector3

xyzw

inline var xyzw: Vector4

y

var y: Float

z

var z: Float