IntVector4

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

Integer 4D vector, exclusively for integer calculations.

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Calculates a dot product between this Vector4 and right.

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

Properties

length
Link copied to clipboard
val length: Double

The Euclidean length of the vector.

squaredLength
Link copied to clipboard
val squaredLength: Int

The squared Euclidean length of the vector.

vector4
Link copied to clipboard
val vector4: Vector4

Casts to Vector4.

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

Extensions

clamp
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.

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