openrndr / org.openrndr.math / IntVector2

IntVector2

data class IntVector2 : Serializable (source)

Integer vector 2

Constructors

<init>

Integer vector 2

IntVector2(x: Int, y: Int)

Properties

length

val length: Double

squaredLength

val squaredLength: Int

vector2

val vector2: Vector2

x

val x: Int

xx

val xx: IntVector2

y

val y: Int

yx

val yx: IntVector2

yy

val yy: IntVector2

Functions

div

operator fun div(d: Int): IntVector2

dot

infix fun dot(right: IntVector2): Int

minus

operator fun minus(v: IntVector2): IntVector2

plus

operator fun plus(v: IntVector2): IntVector2

times

operator fun times(d: Int): IntVector2

Companion Object Properties

UNIT_X

val UNIT_X: IntVector2

UNIT_Y

val UNIT_Y: IntVector2

ZERO

val ZERO: IntVector2

Extension Functions

clamp

fun IntVector2.clamp(min: IntVector2, max: IntVector2): IntVector2

mod

fun IntVector2.mod(b: IntVector2): IntVector2