Pos3d

data class Pos3d(var x: Double, var y: Double, var z: Double)

Represents a mutable 3D vector (vec3) with double precision for coordinates.

Constructors

Link copied to clipboard
constructor()

Constructs a Pos3d with default coordinates (0.0, 0.0, 0.0).

constructor(x: Double, y: Double, z: Double)

Properties

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

Functions

Link copied to clipboard

Calculates the squared distance between this vector and another Pos3d.