Vector3

class Vector3(var x: Double = 0.0, var y: Double = 0.0, var z: Double = 0.0)

A class to represent a 3D coordinate

Parameters

x

The value on the x-axis

y

The value on the y-axis

z

The value on the z-axis

Constructors

Link copied to clipboard
constructor(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0)

Functions

Link copied to clipboard
operator fun plus(other: Vector3): Vector3
Link copied to clipboard
operator fun times(other: Double): Vector3

Properties

Link copied to clipboard
var x: Double
Link copied to clipboard
var y: Double
Link copied to clipboard
var z: Double