Package org.quiltmc.qkl.wrapper.minecraft.math

Functions

Link copied to clipboard
operator fun Vector2f.component1(): Float

The x component of a Vector2f.

operator fun Vector3d.component1(): Double

The x component of a Vector3d.

operator fun Vec2f.component1(): Float

The x component of a Vec2f.

operator fun Vec3d.component1(): Double

The x component of a Vec3d.

operator fun Vec3f.component1(): Float

The x component of a Vec3f.

operator fun Vec3i.component1(): Int

The x component of a Vec3i.

operator fun Vector4f.component1(): Float

The x component of a Vector4f.

Link copied to clipboard
operator fun Vector2f.component2(): Float

The y component of a Vector2f.

operator fun Vector3d.component2(): Double

The y component of a Vector3d.

operator fun Vec2f.component2(): Float

The y component of a Vec2f.

operator fun Vec3d.component2(): Double

The y component of a Vec3d.

operator fun Vec3f.component2(): Float

The y component of a Vec3f.

operator fun Vec3i.component2(): Int

The y component of a Vec3i.

operator fun Vector4f.component2(): Float

The y component of a Vector4f.

Link copied to clipboard
operator fun Vector3d.component3(): Double

The z component of a Vector3d.

operator fun Vec3d.component3(): Double

The z component of a Vec3d.

operator fun Vec3f.component3(): Float

The z component of a Vec3f.

operator fun Vec3i.component3(): Int

The z component of a Vec3i.

operator fun Vector4f.component3(): Float

The z component of a Vector4f.

Link copied to clipboard
operator fun Vector4f.component4(): Float

The w component of a Vector4f.

Link copied to clipboard
infix fun Vector3d.cross(other: Vector3d): Vector3d

The cross product of a Vector3d and a Vector3d.

infix fun Vector3d.cross(other: Vec3d): Vector3d

The cross product of a Vector3d and a Vec3d.

infix fun Vector3d.cross(other: Vec3f): Vector3d

The cross product of a Vector3d and a Vec3f.

infix fun Vector3d.cross(other: Vec3i): Vector3d

The cross product of a Vector3d and a Vec3i.

infix fun Vec3d.cross(other: Vector3d): Vec3d

The cross product of a Vec3d and a Vector3d.

infix fun Vec3d.cross(other: Vec3d): Vec3d

The cross product of a Vec3d and a Vec3d.

infix fun Vec3d.cross(other: Vec3f): Vec3d

The cross product of a Vec3d and a Vec3f.

infix fun Vec3d.cross(other: Vec3i): Vec3d

The cross product of a Vec3d and a Vec3i.

infix fun Vec3f.cross(other: Vector3d): Vec3f

The cross product of a Vec3f and a Vector3d.

infix fun Vec3f.cross(other: Vec3d): Vec3f

The cross product of a Vec3f and a Vec3d.

infix fun Vec3f.cross(other: Vec3f): Vec3f

The cross product of a Vec3f and a Vec3f.

infix fun Vec3f.cross(other: Vec3i): Vec3f

The cross product of a Vec3f and a Vec3i.

infix fun Vec3i.cross(other: Vector3d): Vec3i

The cross product of a Vec3i and a Vector3d.

infix fun Vec3i.cross(other: Vec3d): Vec3i

The cross product of a Vec3i and a Vec3d.

infix fun Vec3i.cross(other: Vec3f): Vec3i

The cross product of a Vec3i and a Vec3f.

infix fun Vec3i.cross(other: Vec3i): Vec3i

The cross product of a Vec3i and a Vec3i.

Link copied to clipboard
operator fun Vector2f.div(other: Float): Vector2f

Divides a Vector2f and a Float.

operator fun Vector3d.div(other: Double): Vector3d

Divides a Vector3d and a Double.

operator fun Vec2f.div(other: Float): Vec2f

Divides a Vec2f and a Float.

operator fun Vec3d.div(other: Double): Vec3d

Divides a Vec3d and a Double.

operator fun Vec3f.div(other: Float): Vec3f

Divides a Vec3f and a Float.

operator fun Vec3i.div(other: Int): Vec3i

Divides a Vec3i and a Int.

operator fun Vector4f.div(other: Float): Vector4f

Divides a Vector4f and a Float.

Link copied to clipboard
operator fun Vector3d.divAssign(other: Double)

Divides a Vector3d and a Double.

operator fun Vec3f.divAssign(other: Float)

Divides a Vec3f and a Float.

operator fun Vector4f.divAssign(other: Float)

Divides a Vector4f and a Float.

Link copied to clipboard
infix fun Vector2f.dot(other: Vector2f): Float

The dot product of a Vector2f and a Vector2f.

infix fun Vector2f.dot(other: Vec2f): Float

The dot product of a Vector2f and a Vec2f.

infix fun Vector3d.dot(other: Vector3d): Double

The dot product of a Vector3d and a Vector3d.

infix fun Vector3d.dot(other: Vec3d): Double

The dot product of a Vector3d and a Vec3d.

infix fun Vector3d.dot(other: Vec3f): Double

The dot product of a Vector3d and a Vec3f.

infix fun Vector3d.dot(other: Vec3i): Double

The dot product of a Vector3d and a Vec3i.

infix fun Vec2f.dot(other: Vector2f): Float

The dot product of a Vec2f and a Vector2f.

infix fun Vec2f.dot(other: Vec2f): Float

The dot product of a Vec2f and a Vec2f.

infix fun Vec3d.dot(other: Vector3d): Double

The dot product of a Vec3d and a Vector3d.

infix fun Vec3d.dot(other: Vec3d): Double

The dot product of a Vec3d and a Vec3d.

infix fun Vec3d.dot(other: Vec3f): Double

The dot product of a Vec3d and a Vec3f.

infix fun Vec3d.dot(other: Vec3i): Double

The dot product of a Vec3d and a Vec3i.

infix fun Vec3f.dot(other: Vector3d): Float

The dot product of a Vec3f and a Vector3d.

infix fun Vec3f.dot(other: Vec3d): Float

The dot product of a Vec3f and a Vec3d.

infix fun Vec3f.dot(other: Vec3f): Float

The dot product of a Vec3f and a Vec3f.

infix fun Vec3f.dot(other: Vec3i): Float

The dot product of a Vec3f and a Vec3i.

infix fun Vec3i.dot(other: Vector3d): Int

The dot product of a Vec3i and a Vector3d.

infix fun Vec3i.dot(other: Vec3d): Int

The dot product of a Vec3i and a Vec3d.

infix fun Vec3i.dot(other: Vec3f): Int

The dot product of a Vec3i and a Vec3f.

infix fun Vec3i.dot(other: Vec3i): Int

The dot product of a Vec3i and a Vec3i.

infix fun Vector4f.dot(other: Vector4f): Float

The dot product of a Vector4f and a Vector4f.

Link copied to clipboard
fun Vector2f.length(): Float

The length of a Vector2f.

fun Vector3d.length(): Double

The length of a Vector3d.

fun Vec3f.length(): Float

The length of a Vec3f.

fun Vec3i.length(): Double

The length of a Vec3i.

fun Vector4f.length(): Float

The length of a Vector4f.

Link copied to clipboard
fun Vector2f.lengthSquared(): Float

The length squared of a Vector2f.

fun Vector3d.lengthSquared(): Double

The length squared of a Vector3d.

fun Vec3f.lengthSquared(): Float

The length squared of a Vec3f.

fun Vec3i.lengthSquared(): Int

The length squared of a Vec3i.

fun Vector4f.lengthSquared(): Float

The length squared of a Vector4f.

Link copied to clipboard
operator fun Vector2f.minus(other: Vector2f): Vector2f

Subtracts a Vector2f from a Vector2f.

operator fun Vector2f.minus(other: Vec2f): Vector2f

Subtracts a Vec2f from a Vector2f.

operator fun Vector3d.minus(other: Vector3d): Vector3d

Subtracts a Vector3d from a Vector3d.

operator fun Vector3d.minus(other: Vec3d): Vector3d

Subtracts a Vec3d from a Vector3d.

operator fun Vector3d.minus(other: Vec3f): Vector3d

Subtracts a Vec3f from a Vector3d.

operator fun Vector3d.minus(other: Vec3i): Vector3d

Subtracts a Vec3i from a Vector3d.

operator fun Vec2f.minus(other: Vector2f): Vec2f

Subtracts a Vector2f from a Vec2f.

operator fun Vec2f.minus(other: Vec2f): Vec2f

Subtracts a Vec2f from a Vec2f.

operator fun Vec3d.minus(other: Vector3d): Vec3d

Subtracts a Vector3d from a Vec3d.

operator fun Vec3d.minus(other: Vec3d): Vec3d

Subtracts a Vec3d from a Vec3d.

operator fun Vec3d.minus(other: Vec3f): Vec3d

Subtracts a Vec3f from a Vec3d.

operator fun Vec3d.minus(other: Vec3i): Vec3d

Subtracts a Vec3i from a Vec3d.

operator fun Vec3f.minus(other: Vector3d): Vec3f

Subtracts a Vector3d from a Vec3f.

operator fun Vec3f.minus(other: Vec3d): Vec3f

Subtracts a Vec3d from a Vec3f.

operator fun Vec3f.minus(other: Vec3f): Vec3f

Subtracts a Vec3f from a Vec3f.

operator fun Vec3f.minus(other: Vec3i): Vec3f

Subtracts a Vec3i from a Vec3f.

operator fun Vec3i.minus(other: Vector3d): Vec3i

Subtracts a Vector3d from a Vec3i.

operator fun Vec3i.minus(other: Vec3d): Vec3i

Subtracts a Vec3d from a Vec3i.

operator fun Vec3i.minus(other: Vec3f): Vec3i

Subtracts a Vec3f from a Vec3i.

operator fun Vec3i.minus(other: Vec3i): Vec3i

Subtracts a Vec3i from a Vec3i.

operator fun Vector4f.minus(other: Vector4f): Vector4f

Subtracts a Vector4f from a Vector4f.

Link copied to clipboard
operator fun Vector3d.minusAssign(other: Vector3d)

Subtracts a Vector3d from a Vector3d.

operator fun Vector3d.minusAssign(other: Vec3d)

Subtracts a Vec3d from a Vector3d.

operator fun Vector3d.minusAssign(other: Vec3f)

Subtracts a Vec3f from a Vector3d.

operator fun Vector3d.minusAssign(other: Vec3i)

Subtracts a Vec3i from a Vector3d.

operator fun Vec3f.minusAssign(other: Vector3d)

Subtracts a Vector3d from a Vec3f.

operator fun Vec3f.minusAssign(other: Vec3d)

Subtracts a Vec3d from a Vec3f.

operator fun Vec3f.minusAssign(other: Vec3f)

Subtracts a Vec3f from a Vec3f.

operator fun Vec3f.minusAssign(other: Vec3i)

Subtracts a Vec3i from a Vec3f.

operator fun Vector4f.minusAssign(other: Vector4f)

Subtracts a Vector4f from a Vector4f.

Link copied to clipboard
fun Vector2f.normalize(): Vector2f

Returns the normalized form of a Vector2f.

fun Vector3d.normalize(): Vector3d

Returns the normalized form of a Vector3d.

Link copied to clipboard
fun Vector4f.normalized(): Vector4f

Returns the normalized form of a Vector4f.

Link copied to clipboard
operator fun Vector2f.plus(other: Vector2f): Vector2f

Adds a Vector2f to a Vector2f.

operator fun Vector2f.plus(other: Vec2f): Vector2f

Adds a Vec2f to a Vector2f.

operator fun Vector3d.plus(other: Vector3d): Vector3d

Adds a Vector3d to a Vector3d.

operator fun Vector3d.plus(other: Vec3d): Vector3d

Adds a Vec3d to a Vector3d.

operator fun Vector3d.plus(other: Vec3f): Vector3d

Adds a Vec3f to a Vector3d.

operator fun Vector3d.plus(other: Vec3i): Vector3d

Adds a Vec3i to a Vector3d.

operator fun Vec2f.plus(other: Vector2f): Vec2f

Adds a Vector2f to a Vec2f.

operator fun Vec2f.plus(other: Vec2f): Vec2f

Adds a Vec2f to a Vec2f.

operator fun Vec3d.plus(other: Vector3d): Vec3d

Adds a Vector3d to a Vec3d.

operator fun Vec3d.plus(other: Vec3d): Vec3d

Adds a Vec3d to a Vec3d.

operator fun Vec3d.plus(other: Vec3f): Vec3d

Adds a Vec3f to a Vec3d.

operator fun Vec3d.plus(other: Vec3i): Vec3d

Adds a Vec3i to a Vec3d.

operator fun Vec3f.plus(other: Vector3d): Vec3f

Adds a Vector3d to a Vec3f.

operator fun Vec3f.plus(other: Vec3d): Vec3f

Adds a Vec3d to a Vec3f.

operator fun Vec3f.plus(other: Vec3f): Vec3f

Adds a Vec3f to a Vec3f.

operator fun Vec3f.plus(other: Vec3i): Vec3f

Adds a Vec3i to a Vec3f.

operator fun Vec3i.plus(other: Vector3d): Vec3i

Adds a Vector3d to a Vec3i.

operator fun Vec3i.plus(other: Vec3d): Vec3i

Adds a Vec3d to a Vec3i.

operator fun Vec3i.plus(other: Vec3f): Vec3i

Adds a Vec3f to a Vec3i.

operator fun Vec3i.plus(other: Vec3i): Vec3i

Adds a Vec3i to a Vec3i.

operator fun Vector4f.plus(other: Vector4f): Vector4f

Adds a Vector4f to a Vector4f.

Link copied to clipboard
operator fun Vector3d.plusAssign(other: Vector3d)

Adds a Vector3d to a Vector3d.

operator fun Vector3d.plusAssign(other: Vec3d)

Adds a Vec3d to a Vector3d.

operator fun Vector3d.plusAssign(other: Vec3f)

Adds a Vec3f to a Vector3d.

operator fun Vector3d.plusAssign(other: Vec3i)

Adds a Vec3i to a Vector3d.

operator fun Vec3f.plusAssign(other: Vector3d)

Adds a Vector3d to a Vec3f.

operator fun Vec3f.plusAssign(other: Vec3d)

Adds a Vec3d to a Vec3f.

operator fun Vec3f.plusAssign(other: Vec3f)

Adds a Vec3f to a Vec3f.

operator fun Vec3f.plusAssign(other: Vec3i)

Adds a Vec3i to a Vec3f.

operator fun Vector4f.plusAssign(other: Vector4f)

Adds a Vector4f to a Vector4f.

Link copied to clipboard
operator fun Vector2f.times(other: Float): Vector2f

Multiplies a Vector2f and a Float.

operator fun Vector2f.times(other: Vector2f): Vector2f

Multiplies a Vector2f and a Vector2f. This method is a shorthand for component wise multiplication.

operator fun Vector2f.times(other: Vec2f): Vector2f

Multiplies a Vector2f and a Vec2f. This method is a shorthand for component wise multiplication.

operator fun Vector3d.times(other: Double): Vector3d

Multiplies a Vector3d and a Double.

operator fun Vector3d.times(other: Vector3d): Vector3d

Multiplies a Vector3d and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vector3d.times(other: Vec3d): Vector3d

Multiplies a Vector3d and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vector3d.times(other: Vec3f): Vector3d

Multiplies a Vector3d and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vector3d.times(other: Vec3i): Vector3d

Multiplies a Vector3d and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vec2f.times(other: Float): Vec2f

Multiplies a Vec2f and a Float.

operator fun Vec2f.times(other: Vector2f): Vec2f

Multiplies a Vec2f and a Vector2f. This method is a shorthand for component wise multiplication.

operator fun Vec2f.times(other: Vec2f): Vec2f

Multiplies a Vec2f and a Vec2f. This method is a shorthand for component wise multiplication.

operator fun Vec3d.times(other: Double): Vec3d

Multiplies a Vec3d and a Double.

operator fun Vec3d.times(other: Vector3d): Vec3d

Multiplies a Vec3d and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vec3d.times(other: Vec3d): Vec3d

Multiplies a Vec3d and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vec3d.times(other: Vec3f): Vec3d

Multiplies a Vec3d and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vec3d.times(other: Vec3i): Vec3d

Multiplies a Vec3d and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vec3f.times(other: Float): Vec3f

Multiplies a Vec3f and a Float.

operator fun Vec3f.times(other: Vector3d): Vec3f

Multiplies a Vec3f and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vec3f.times(other: Vec3d): Vec3f

Multiplies a Vec3f and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vec3f.times(other: Vec3f): Vec3f

Multiplies a Vec3f and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vec3f.times(other: Vec3i): Vec3f

Multiplies a Vec3f and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vec3i.times(other: Int): Vec3i

Multiplies a Vec3i and an Int.

operator fun Vec3i.times(other: Vector3d): Vec3i

Multiplies a Vec3i and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vec3i.times(other: Vec3d): Vec3i

Multiplies a Vec3i and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vec3i.times(other: Vec3f): Vec3i

Multiplies a Vec3i and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vec3i.times(other: Vec3i): Vec3i

Multiplies a Vec3i and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vector4f.times(other: Float): Vector4f

Multiplies a Vector4f and a Float.

operator fun Vector4f.times(other: Vector4f): Vector4f

Multiplies a Vector4f and a Vector4f. This method is a shorthand for component wise multiplication.

Link copied to clipboard
operator fun Vector3d.timesAssign(other: Double)

Multiplies a Vector3d and a Double.

operator fun Vector3d.timesAssign(other: Vector3d)

Multiplies a Vector3d and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vector3d.timesAssign(other: Vec3d)

Multiplies a Vector3d and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vector3d.timesAssign(other: Vec3f)

Multiplies a Vector3d and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vector3d.timesAssign(other: Vec3i)

Multiplies a Vector3d and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vec3f.timesAssign(other: Float)

Multiplies a Vec3f and a Float.

operator fun Vec3f.timesAssign(other: Vector3d)

Multiplies a Vec3f and a Vector3d. This method is a shorthand for component wise multiplication.

operator fun Vec3f.timesAssign(other: Vec3d)

Multiplies a Vec3f and a Vec3d. This method is a shorthand for component wise multiplication.

operator fun Vec3f.timesAssign(other: Vec3f)

Multiplies a Vec3f and a Vec3f. This method is a shorthand for component wise multiplication.

operator fun Vec3f.timesAssign(other: Vec3i)

Multiplies a Vec3f and a Vec3i. This method is a shorthand for component wise multiplication.

operator fun Vector4f.timesAssign(other: Float)

Multiplies a Vector4f and a Float.

operator fun Vector4f.timesAssign(other: Vector4f)

Multiplies a Vector4f and a Vector4f. This method is a shorthand for component wise multiplication.

Link copied to clipboard
operator fun Vector2f.unaryMinus(): Vector2f

Negates a Vector2f.

operator fun Vector3d.unaryMinus(): Vector3d

Negates a Vector3d.

operator fun Vec2f.unaryMinus(): Vec2f

Negates a Vec2f.

operator fun Vec3d.unaryMinus(): Vec3d

Negates a Vec3d.

operator fun Vec3f.unaryMinus(): Vec3f

Negates a Vec3f.

operator fun Vec3i.unaryMinus(): Vec3i

Negates a Vec3i.

operator fun Vector4f.unaryMinus(): Vector4f

Negates a Vector4f.