openrndr / org.openrndr.math / IntVector4

IntVector4

data class IntVector4 : Serializable (source)

Integer vector 4

Constructors

<init>

Integer vector 4

IntVector4(x: Int, y: Int, z: Int, w: Int)

Properties

length

val length: Double

squaredLength

val squaredLength: Int

vector4

val vector4: Vector4

w

val w: Int

x

val x: Int

xx

val xx: IntVector2

xy

val xy: IntVector2

y

val y: Int

yx

val yx: IntVector2

yy

val yy: IntVector2

z

val z: Int

Functions

div

operator fun div(d: Int): IntVector4

dot

infix fun dot(right: IntVector4): Int

minus

operator fun minus(v: IntVector4): IntVector4

plus

operator fun plus(v: IntVector4): IntVector4

times

operator fun times(d: Int): IntVector4

Companion Object Properties

UNIT_W

val UNIT_W: IntVector4

UNIT_X

val UNIT_X: IntVector4

UNIT_Y

val UNIT_Y: IntVector4

UNIT_Z

val UNIT_Z: IntVector4

ZERO

val ZERO: IntVector4

Extension Functions

clamp

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

mod

fun IntVector4.mod(b: IntVector4): IntVector4