Vector3

class Vector3 @JvmOverloads constructor(x: Int, y: Int, z: Int) : Comparable<Vector3?>

Vector3 An object representing a mathematical vector in 3D cartesian coordinate space.

Constructors

Vector3
Link copied to clipboard
fun Vector3(x: Int = 0, y: Int = 0, z: Int = 0)

Functions

add
Link copied to clipboard
fun add(u: Vector3): Vector3
angleTo2D
Link copied to clipboard
fun angleTo2D(v: Vector3): Double
compareTo
Link copied to clipboard
open operator override fun compareTo(o: Vector3?): Int
cross
Link copied to clipboard
fun cross(u: Vector3, a: Double): Double
distanceTo
Link copied to clipboard
fun distanceTo(v: Vector3): Double
distanceTo2D
Link copied to clipboard
fun distanceTo2D(v: Vector3): Double
dot
Link copied to clipboard
fun dot(u: Vector3): Double
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
gradientTo2D
Link copied to clipboard
fun gradientTo2D(v: Vector3): Double
hashCode
Link copied to clipboard
open override fun hashCode(): Int
magnitude
Link copied to clipboard
fun magnitude(): Double
mul
Link copied to clipboard
fun mul(u: Double): Vector3
toLong2D
Link copied to clipboard
fun toLong2D(): Long
toMatrix
Link copied to clipboard
fun toMatrix(): IntArray
toPoint2D
Link copied to clipboard
fun toPoint2D(): Point
toString
Link copied to clipboard
open override fun toString(): String

Properties

x
Link copied to clipboard
var x: Int = 0
y
Link copied to clipboard
var y: Int = 0
z
Link copied to clipboard
var z: Int = 0