openrndr / org.openrndr.math / IntVector3

IntVector3

data class IntVector3 : Serializable (source)

Integer vector 3

Constructors

<init>

Integer vector 3

IntVector3(x: Int, y: Int, z: Int)

Properties

length

val length: Double

squaredLength

val squaredLength: Int

vector3

val vector3: Vector3

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): IntVector3

dot

infix fun dot(right: IntVector3): Int

minus

operator fun minus(v: IntVector3): IntVector3

plus

operator fun plus(v: IntVector3): IntVector3

times

operator fun times(d: Int): IntVector3

Companion Object Properties

UNIT_X

val UNIT_X: IntVector3

UNIT_Y

val UNIT_Y: IntVector3

UNIT_Z

val UNIT_Z: IntVector3

ZERO

val ZERO: IntVector3

Extension Functions

clamp

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

mod

fun IntVector3.mod(b: IntVector3): IntVector3