Position

@Serializable
data class Position(val x: Double, val y: Double, val z: Double)

A position in a 3D space with x, y, and z coordinates.

Constructors

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

Types

Link copied to clipboard
object Companion

Conversion functions to and from Position.

Properties

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

Functions

Link copied to clipboard

Returns the Euclidean distance between this position and other.

Link copied to clipboard

Returns the Euclidean distance between this position and the x, y, and z coordinates.