Vector2

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

Summary

Public constructors

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

Public methods

operator Vector2
dec()

operator Vector2
div(v: Float)

operator Vector2

operator Float

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

operator Float
get(index: Int)

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

operator Vector2
inc()

operator Vector2

operator Vector2

operator Vector2
plus(v: Float)

operator Vector2

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

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

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

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

operator Vector2

operator Vector2

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

operator Vector2

Extension functions

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

Vector2

Properties

Float

Float

Vector2

Float

Vector2

Float

List<Float>

Float

Vector2

Float

Public constructors

<init>

Vector2(v: Vector2)

<init>

Vector2(
    x: Float = 0.0f,
    y: Float = 0.0f)

Public methods

dec

operator fun dec(): Vector2

div

inline operator fun div(v: Float): Vector2

div

inline operator fun div(v: Vector2): Vector2

get

operator fun get(index: VectorComponent): Float

get

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

get

operator fun get(index: Int): Float

get

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

inc

operator fun inc(): Vector2

minus

inline operator fun minus(v: Float): Vector2

minus

inline operator fun minus(v: Vector2): Vector2

plus

inline operator fun plus(v: Float): Vector2

plus

inline operator fun plus(v: Vector2): Vector2

set

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

set

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

set

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

set

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

times

inline operator fun times(v: Float): Vector2

times

inline operator fun times(v: Vector2): Vector2

transform

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

unaryMinus

operator fun unaryMinus(): Vector2

Properties

g

inline var g: Float

r

inline var r: Float

rg

inline var rg: Vector2

s

inline var s: Float

st

inline var st: Vector2

t

inline var t: Float

v2storage

inline val v2storage: List<Float>

x

var x: Float

xy

inline var xy: Vector2

y

var y: Float