IntVector4

data class IntVector4(    val x: Int,     val y: Int,     val z: Int,     val w: Int)

Integer 4D vector, exclusively for integer calculations.

Constructors

Link copied to clipboard
fun IntVector4(    x: Int,     y: Int,     z: Int,     w: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun div(d: Int): IntVector4
Link copied to clipboard
infix fun dot(right: IntVector4): Int

Calculates a dot product between this Vector4 and right.

Link copied to clipboard
operator fun minus(v: IntVector4): IntVector4
Link copied to clipboard
operator fun plus(v: IntVector4): IntVector4
Link copied to clipboard
operator fun times(d: Int): IntVector4

Properties

Link copied to clipboard
val length: Double

The Euclidean length of the vector.

Link copied to clipboard
val squaredLength: Int

The squared Euclidean length of the vector.

Link copied to clipboard
val vector4: Vector4

Casts to Vector4.

Link copied to clipboard
val w: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val xx: IntVector2
Link copied to clipboard
val xy: IntVector2
Link copied to clipboard
val y: Int
Link copied to clipboard
val yx: IntVector2
Link copied to clipboard
val yy: IntVector2
Link copied to clipboard
val z: Int

Extensions

Link copied to clipboard
fun IntVector4.clamp(min: IntVector4, max: IntVector4): IntVector4

Returns IntVector4 whose value is limited between min and max per vector component.

Link copied to clipboard
fun IntVector4.mod(b: IntVector4): IntVector4

Sources

Link copied to clipboard